	format	MS COFF
	extrn	___bb_blitz_blitz
	extrn	___bb_cal3d_cal3d
	extrn	___bb_minib3d_minib3d
	extrn	_bbArrayNew1D
	extrn	_bbArraySlice
	extrn	_bbEmptyArray
	extrn	_bbEmptyString
	extrn	_bbGCFree
	extrn	_bbNullObject
	extrn	_bbObjectClass
	extrn	_bbObjectCompare
	extrn	_bbObjectCtor
	extrn	_bbObjectDowncast
	extrn	_bbObjectFree
	extrn	_bbObjectNew
	extrn	_bbObjectRegisterType
	extrn	_bbObjectReserved
	extrn	_bbObjectSendMessage
	extrn	_bbObjectToString
	extrn	_bbOnDebugEnterScope
	extrn	_bbOnDebugEnterStm
	extrn	_bbOnDebugLeaveScope
	extrn	_bbStringClass
	extrn	_bbStringConcat
	extrn	_bbStringFromInt
	extrn	_brl_blitz_ArrayBoundsError
	extrn	_brl_blitz_DebugLog
	extrn	_brl_blitz_NullObjectError
	extrn	_brl_filesystem_StripDir
	extrn	_brl_filesystem_StripExt
	extrn	_brl_linkedlist_ClearList
	extrn	_brl_linkedlist_TList
	extrn	_c3d_cal3d_CalCoreModel
	extrn	_sidesign_minib3d_FreeBrush
	extrn	_sidesign_minib3d_FreeEntity
	extrn	_sidesign_minib3d_FreeTexture
	extrn	_sidesign_minib3d_LoadTexture
	extrn	_sidesign_minib3d_PaintEntity
	extrn	_sidesign_minib3d_TBrush
	extrn	_sidesign_minib3d_TMesh
	public	___bb_calb3d_calb3d
	public	__c3d_calb3d_CB3DAnimation_Delete
	public	__c3d_calb3d_CB3DAnimation_New
	public	__c3d_calb3d_CB3DMAnimation_Delete
	public	__c3d_calb3d_CB3DMAnimation_New
	public	__c3d_calb3d_CB3DMaterial_AddMap
	public	__c3d_calb3d_CB3DMaterial_Delete
	public	__c3d_calb3d_CB3DMaterial_New
	public	__c3d_calb3d_CB3DMesh_Build
	public	__c3d_calb3d_CB3DMesh_Delete
	public	__c3d_calb3d_CB3DMesh_New
	public	__c3d_calb3d_CB3DMesh_PaintMaterial
	public	__c3d_calb3d_CB3DMesh_Update
	public	__c3d_calb3d_CB3DModel_AddAnim
	public	__c3d_calb3d_CB3DModel_AddMaterial
	public	__c3d_calb3d_CB3DModel_AddMesh
	public	__c3d_calb3d_CB3DModel_AddMorphAnim
	public	__c3d_calb3d_CB3DModel_Animate
	public	__c3d_calb3d_CB3DModel_AnimateMorph
	public	__c3d_calb3d_CB3DModel_Build
	public	__c3d_calb3d_CB3DModel_Delete
	public	__c3d_calb3d_CB3DModel_Destroy
	public	__c3d_calb3d_CB3DModel_GetMaterial
	public	__c3d_calb3d_CB3DModel_New
	public	__c3d_calb3d_CB3DModel_SetSkeleton
	public	__c3d_calb3d_CB3DModel_StopAnimation
	public	__c3d_calb3d_CB3DModel_StopMorphAnimation
	public	__c3d_calb3d_CB3DModel_Update
	public	__c3d_calb3d_CB3DTexture_Delete
	public	__c3d_calb3d_CB3DTexture_New
	public	_c3d_calb3d_CB3DAnimation
	public	_c3d_calb3d_CB3DMAnimation
	public	_c3d_calb3d_CB3DMaterial
	public	_c3d_calb3d_CB3DMesh
	public	_c3d_calb3d_CB3DModel
	public	_c3d_calb3d_CB3DTexture
	section	"code" code
___bb_calb3d_calb3d:
	push	ebp
	mov	ebp,esp
	push	ebx
	cmp	dword [_287],0
	je	_288
	mov	eax,0
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_288:
	mov	dword [_287],1
	push	ebp
	push	_285
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	call	___bb_blitz_blitz
	call	___bb_cal3d_cal3d
	call	___bb_minib3d_minib3d
	push	_c3d_calb3d_CB3DModel
	call	_bbObjectRegisterType
	add	esp,4
	push	_c3d_calb3d_CB3DMesh
	call	_bbObjectRegisterType
	add	esp,4
	push	_c3d_calb3d_CB3DMaterial
	call	_bbObjectRegisterType
	add	esp,4
	push	_c3d_calb3d_CB3DTexture
	call	_bbObjectRegisterType
	add	esp,4
	push	_c3d_calb3d_CB3DAnimation
	call	_bbObjectRegisterType
	add	esp,4
	push	_c3d_calb3d_CB3DMAnimation
	call	_bbObjectRegisterType
	add	esp,4
	mov	ebx,0
	jmp	_172
_172:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_New:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	esi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,ebp
	push	eax
	push	_349
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	dword [ebp-4]
	call	_bbObjectCtor
	add	esp,4
	mov	eax,dword [ebp-4]
	mov	dword [eax],_c3d_calb3d_CB3DModel
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+8],edx
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+12],edx
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+16],edx
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+20],edx
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+24],edx
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+28],edx
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+32],edx
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+36],edx
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+40],edx
	mov	eax,dword [ebp-4]
	mov	byte [eax+44],0
	mov	eax,dword [ebp-4]
	mov	byte [eax+45],0
	mov	eax,dword [ebp-4]
	mov	byte [eax+46],0
	mov	eax,dword [ebp-4]
	mov	byte [eax+47],0
	mov	edx,_bbEmptyString
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+48],edx
	mov	edx,_bbEmptyString
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+52],edx
	push	_300
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-4]
	cmp	esi,_bbNullObject
	jne	_303
	call	_brl_blitz_NullObjectError
_303:
	push	_bbNullObject
	call	dword [_sidesign_minib3d_TMesh+400]
	add	esp,4
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [esi+20]
	dec	dword [eax+4]
	jnz	_308
	push	eax
	call	_bbGCFree
	add	esp,4
_308:
	mov	dword [esi+20],ebx
	push	_309
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-4]
	cmp	esi,_bbNullObject
	jne	_311
	call	_brl_blitz_NullObjectError
_311:
	push	_brl_linkedlist_TList
	call	_bbObjectNew
	add	esp,4
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [esi+24]
	dec	dword [eax+4]
	jnz	_316
	push	eax
	call	_bbGCFree
	add	esp,4
_316:
	mov	dword [esi+24],ebx
	push	_317
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-4]
	cmp	esi,_bbNullObject
	jne	_319
	call	_brl_blitz_NullObjectError
_319:
	push	_brl_linkedlist_TList
	call	_bbObjectNew
	add	esp,4
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [esi+32]
	dec	dword [eax+4]
	jnz	_324
	push	eax
	call	_bbGCFree
	add	esp,4
_324:
	mov	dword [esi+32],ebx
	push	_325
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-4]
	cmp	esi,_bbNullObject
	jne	_327
	call	_brl_blitz_NullObjectError
_327:
	push	_brl_linkedlist_TList
	call	_bbObjectNew
	add	esp,4
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [esi+36]
	dec	dword [eax+4]
	jnz	_332
	push	eax
	call	_bbGCFree
	add	esp,4
_332:
	mov	dword [esi+36],ebx
	push	_333
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-4]
	cmp	esi,_bbNullObject
	jne	_335
	call	_brl_blitz_NullObjectError
_335:
	push	_brl_linkedlist_TList
	call	_bbObjectNew
	add	esp,4
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [esi+28]
	dec	dword [eax+4]
	jnz	_340
	push	eax
	call	_bbGCFree
	add	esp,4
_340:
	mov	dword [esi+28],ebx
	push	_341
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-4]
	cmp	esi,_bbNullObject
	jne	_343
	call	_brl_blitz_NullObjectError
_343:
	push	_c3d_cal3d_CalCoreModel
	call	_bbObjectNew
	add	esp,4
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [esi+12]
	dec	dword [eax+4]
	jnz	_348
	push	eax
	call	_bbGCFree
	add	esp,4
_348:
	mov	dword [esi+12],ebx
	mov	ebx,0
	jmp	_175
_175:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_Delete:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
_178:
	mov	eax,dword [ebx+52]
	dec	dword [eax+4]
	jnz	_353
	push	eax
	call	_bbGCFree
	add	esp,4
_353:
	mov	eax,dword [ebx+48]
	dec	dword [eax+4]
	jnz	_355
	push	eax
	call	_bbGCFree
	add	esp,4
_355:
	mov	eax,dword [ebx+40]
	dec	dword [eax+4]
	jnz	_357
	push	eax
	call	_bbGCFree
	add	esp,4
_357:
	mov	eax,dword [ebx+36]
	dec	dword [eax+4]
	jnz	_359
	push	eax
	call	_bbGCFree
	add	esp,4
_359:
	mov	eax,dword [ebx+32]
	dec	dword [eax+4]
	jnz	_361
	push	eax
	call	_bbGCFree
	add	esp,4
_361:
	mov	eax,dword [ebx+28]
	dec	dword [eax+4]
	jnz	_363
	push	eax
	call	_bbGCFree
	add	esp,4
_363:
	mov	eax,dword [ebx+24]
	dec	dword [eax+4]
	jnz	_365
	push	eax
	call	_bbGCFree
	add	esp,4
_365:
	mov	eax,dword [ebx+20]
	dec	dword [eax+4]
	jnz	_367
	push	eax
	call	_bbGCFree
	add	esp,4
_367:
	mov	eax,dword [ebx+16]
	dec	dword [eax+4]
	jnz	_369
	push	eax
	call	_bbGCFree
	add	esp,4
_369:
	mov	eax,dword [ebx+12]
	dec	dword [eax+4]
	jnz	_371
	push	eax
	call	_bbGCFree
	add	esp,4
_371:
	mov	eax,dword [ebx+8]
	dec	dword [eax+4]
	jnz	_373
	push	eax
	call	_bbGCFree
	add	esp,4
_373:
	mov	eax,0
	jmp	_351
_351:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_SetSkeleton:
	push	ebp
	mov	ebp,esp
	sub	esp,8
	push	ebx
	push	esi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	push	ebp
	push	_389
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_374
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-4]
	cmp	esi,_bbNullObject
	jne	_376
	call	_brl_blitz_NullObjectError
_376:
	mov	ebx,dword [ebp-8]
	inc	dword [ebx+4]
	mov	eax,dword [esi+8]
	dec	dword [eax+4]
	jnz	_381
	push	eax
	call	_bbGCFree
	add	esp,4
_381:
	mov	dword [esi+8],ebx
	push	_382
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_384
	call	_brl_blitz_NullObjectError
_384:
	mov	esi,dword [ebx+12]
	cmp	esi,_bbNullObject
	jne	_386
	call	_brl_blitz_NullObjectError
_386:
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_388
	call	_brl_blitz_NullObjectError
_388:
	push	dword [ebx+8]
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+220]
	add	esp,8
	mov	ebx,0
	jmp	_182
_182:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_Animate:
	push	ebp
	mov	ebp,esp
	sub	esp,8
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	push	ebp
	push	_398
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_391
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_393
	call	_brl_blitz_NullObjectError
_393:
	mov	ebx,dword [ebx+16]
	cmp	ebx,_bbNullObject
	jne	_395
	call	_brl_blitz_NullObjectError
_395:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+68]
	add	esp,4
	mov	ebx,eax
	cmp	ebx,_bbNullObject
	jne	_397
	call	_brl_blitz_NullObjectError
_397:
	push	0
	push	1065353216
	push	dword [ebp-8]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+64]
	add	esp,16
	mov	ebx,0
	jmp	_186
_186:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_StopAnimation:
	push	ebp
	mov	ebp,esp
	sub	esp,8
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	push	ebp
	push	_406
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_399
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_401
	call	_brl_blitz_NullObjectError
_401:
	mov	ebx,dword [ebx+16]
	cmp	ebx,_bbNullObject
	jne	_403
	call	_brl_blitz_NullObjectError
_403:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+68]
	add	esp,4
	mov	ebx,eax
	cmp	ebx,_bbNullObject
	jne	_405
	call	_brl_blitz_NullObjectError
_405:
	push	0
	push	dword [ebp-8]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+68]
	add	esp,12
	mov	ebx,0
	jmp	_190
_190:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_StopMorphAnimation:
	push	ebp
	mov	ebp,esp
	sub	esp,8
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	push	ebp
	push	_414
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_407
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_409
	call	_brl_blitz_NullObjectError
_409:
	mov	ebx,dword [ebx+16]
	cmp	ebx,_bbNullObject
	jne	_411
	call	_brl_blitz_NullObjectError
_411:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+80]
	add	esp,4
	mov	ebx,eax
	cmp	ebx,_bbNullObject
	jne	_413
	call	_brl_blitz_NullObjectError
_413:
	push	0
	push	dword [ebp-8]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+56]
	add	esp,12
	mov	ebx,0
	jmp	_194
_194:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_AnimateMorph:
	push	ebp
	mov	ebp,esp
	sub	esp,8
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	push	ebp
	push	_422
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_415
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_417
	call	_brl_blitz_NullObjectError
_417:
	mov	ebx,dword [ebx+16]
	cmp	ebx,_bbNullObject
	jne	_419
	call	_brl_blitz_NullObjectError
_419:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+80]
	add	esp,4
	mov	ebx,eax
	cmp	ebx,_bbNullObject
	jne	_421
	call	_brl_blitz_NullObjectError
_421:
	push	0
	push	1065353216
	push	dword [ebp-8]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,16
	mov	ebx,0
	jmp	_198
_198:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_AddAnim:
	push	ebp
	mov	ebp,esp
	sub	esp,12
	push	ebx
	push	esi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	mov	dword [ebp-12],_bbNullObject
	push	ebp
	push	_453
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_423
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	cmp	dword [ebp-8],_bbNullObject
	je	_424
	push	_425
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_c3d_calb3d_CB3DAnimation
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-12],eax
	push	_427
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-12]
	cmp	ebx,_bbNullObject
	jne	_429
	call	_brl_blitz_NullObjectError
_429:
	mov	esi,dword [ebp-4]
	cmp	esi,_bbNullObject
	jne	_432
	call	_brl_blitz_NullObjectError
_432:
	mov	esi,dword [esi+12]
	cmp	esi,_bbNullObject
	jne	_434
	call	_brl_blitz_NullObjectError
_434:
	push	dword [ebp-8]
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+60]
	add	esp,8
	mov	dword [ebx+20],eax
	push	_435
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-12]
	cmp	ebx,_bbNullObject
	jne	_437
	call	_brl_blitz_NullObjectError
_437:
	push	dword [ebx+20]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_5
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	push	_438
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-12]
	cmp	esi,_bbNullObject
	jne	_440
	call	_brl_blitz_NullObjectError
_440:
	mov	ebx,dword [ebp-4]
	inc	dword [ebx+4]
	mov	eax,dword [esi+28]
	dec	dword [eax+4]
	jnz	_445
	push	eax
	call	_bbGCFree
	add	esp,4
_445:
	mov	dword [esi+28],ebx
	push	_446
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_448
	call	_brl_blitz_NullObjectError
_448:
	mov	ebx,dword [ebx+32]
	cmp	ebx,_bbNullObject
	jne	_450
	call	_brl_blitz_NullObjectError
_450:
	push	dword [ebp-12]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+68]
	add	esp,8
	push	_451
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-12]
	jmp	_202
_424:
	push	_452
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,_bbNullObject
	jmp	_202
_202:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_AddMorphAnim:
	push	ebp
	mov	ebp,esp
	sub	esp,12
	push	ebx
	push	esi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	mov	dword [ebp-12],_bbNullObject
	push	ebp
	push	_487
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_457
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	cmp	dword [ebp-8],_bbNullObject
	je	_458
	push	_459
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_c3d_calb3d_CB3DMAnimation
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-12],eax
	push	_461
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-12]
	cmp	ebx,_bbNullObject
	jne	_463
	call	_brl_blitz_NullObjectError
_463:
	mov	esi,dword [ebp-4]
	cmp	esi,_bbNullObject
	jne	_466
	call	_brl_blitz_NullObjectError
_466:
	mov	esi,dword [esi+12]
	cmp	esi,_bbNullObject
	jne	_468
	call	_brl_blitz_NullObjectError
_468:
	push	dword [ebp-8]
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+100]
	add	esp,8
	mov	dword [ebx+20],eax
	push	_469
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-12]
	cmp	ebx,_bbNullObject
	jne	_471
	call	_brl_blitz_NullObjectError
_471:
	push	dword [ebx+20]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_6
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	push	_472
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-12]
	cmp	esi,_bbNullObject
	jne	_474
	call	_brl_blitz_NullObjectError
_474:
	mov	ebx,dword [ebp-4]
	inc	dword [ebx+4]
	mov	eax,dword [esi+28]
	dec	dword [eax+4]
	jnz	_479
	push	eax
	call	_bbGCFree
	add	esp,4
_479:
	mov	dword [esi+28],ebx
	push	_480
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_482
	call	_brl_blitz_NullObjectError
_482:
	mov	ebx,dword [ebx+36]
	cmp	ebx,_bbNullObject
	jne	_484
	call	_brl_blitz_NullObjectError
_484:
	push	dword [ebp-12]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+68]
	add	esp,8
	push	_485
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-12]
	jmp	_206
_458:
	push	_486
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,_bbNullObject
	jmp	_206
_206:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_AddMaterial:
	push	ebp
	mov	ebp,esp
	sub	esp,44
	push	ebx
	push	esi
	push	edi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	mov	eax,dword [ebp+16]
	mov	dword [ebp-12],eax
	mov	eax,dword [ebp+20]
	mov	dword [ebp-16],eax
	mov	dword [ebp-20],_bbNullObject
	mov	dword [ebp-24],_bbNullObject
	mov	dword [ebp-28],0
	mov	dword [ebp-32],0
	mov	dword [ebp-36],_bbNullObject
	mov	dword [ebp-40],_bbEmptyString
	mov	dword [ebp-44],_bbEmptyString
	mov	eax,ebp
	push	eax
	push	_592
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_489
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-20],_bbNullObject
	push	_491
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-24],_bbNullObject
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_494
	call	_brl_blitz_NullObjectError
_494:
	mov	edi,dword [ebx+28]
	mov	ebx,edi
	cmp	ebx,_bbNullObject
	jne	_497
	call	_brl_blitz_NullObjectError
_497:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+140]
	add	esp,4
	mov	esi,eax
	jmp	_7
_9:
	mov	ebx,esi
	cmp	ebx,_bbNullObject
	jne	_502
	call	_brl_blitz_NullObjectError
_502:
	push	_c3d_calb3d_CB3DMaterial
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	dword [ebp-24],eax
	cmp	dword [ebp-24],_bbNullObject
	je	_7
	push	_503
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-24]
	cmp	ebx,_bbNullObject
	jne	_505
	call	_brl_blitz_NullObjectError
_505:
	mov	eax,dword [ebp-12]
	cmp	dword [ebx+24],eax
	jne	_506
	push	_507
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [ebp-24]
	mov	dword [ebp-20],eax
	push	_508
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-28],1
	push	_510
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	jmp	_8
_506:
_7:
	mov	ebx,esi
	cmp	ebx,_bbNullObject
	jne	_500
	call	_brl_blitz_NullObjectError
_500:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_9
_8:
	push	_511
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	cmp	dword [ebp-20],_bbNullObject
	jne	_512
	push	_513
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_c3d_calb3d_CB3DMaterial
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-20],eax
	push	_514
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-20]
	cmp	esi,_bbNullObject
	jne	_516
	call	_brl_blitz_NullObjectError
_516:
	mov	ebx,dword [ebp-8]
	inc	dword [ebx+4]
	mov	eax,dword [esi+12]
	dec	dword [eax+4]
	jnz	_521
	push	eax
	call	_bbGCFree
	add	esp,4
_521:
	mov	dword [esi+12],ebx
	push	_522
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-20]
	cmp	ebx,_bbNullObject
	jne	_524
	call	_brl_blitz_NullObjectError
_524:
	mov	eax,dword [ebp-12]
	mov	dword [ebx+24],eax
	push	_526
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_528
	call	_brl_blitz_NullObjectError
_528:
	mov	ebx,dword [ebx+12]
	cmp	ebx,_bbNullObject
	jne	_530
	call	_brl_blitz_NullObjectError
_530:
	push	dword [ebp-8]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+120]
	add	esp,8
_512:
	push	_531
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-12]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_10
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	push	_532
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_534
	call	_brl_blitz_NullObjectError
_534:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+56]
	add	esp,4
	push	eax
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_11
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	push	_535
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-32],0
	mov	dword [ebp-32],0
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_538
	call	_brl_blitz_NullObjectError
_538:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+56]
	add	esp,4
	sub	eax,1
	mov	edi,eax
	jmp	_539
_14:
	push	_541
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_c3d_calb3d_CB3DTexture
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-36],eax
	push	_543
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-36]
	cmp	ebx,_bbNullObject
	jne	_545
	call	_brl_blitz_NullObjectError
_545:
	mov	eax,dword [ebp-32]
	mov	dword [ebx+20],eax
	push	_547
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_549
	call	_brl_blitz_NullObjectError
_549:
	push	dword [ebp-32]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+60]
	add	esp,8
	mov	dword [ebp-40],eax
	push	_551
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-40]
	call	_brl_filesystem_StripExt
	add	esp,4
	push	eax
	call	_brl_filesystem_StripDir
	add	esp,4
	mov	dword [ebp-44],eax
	push	_553
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_555
	call	_brl_blitz_NullObjectError
_555:
	push	dword [ebp-32]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+60]
	add	esp,8
	push	eax
	push	_15
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	push	_556
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-36]
	cmp	ebx,_bbNullObject
	jne	_558
	call	_brl_blitz_NullObjectError
_558:
	mov	esi,ebx
	mov	eax,dword [ebp-44]
	inc	dword [eax+4]
	mov	ebx,eax
	mov	eax,dword [esi+12]
	dec	dword [eax+4]
	jnz	_563
	push	eax
	call	_bbGCFree
	add	esp,4
_563:
	mov	dword [esi+12],ebx
	push	_564
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-36]
	cmp	ebx,_bbNullObject
	jne	_566
	call	_brl_blitz_NullObjectError
_566:
	mov	esi,dword [ebp-8]
	cmp	esi,_bbNullObject
	jne	_569
	call	_brl_blitz_NullObjectError
_569:
	push	1
	push	dword [ebp-32]
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+60]
	add	esp,8
	push	eax
	push	dword [ebp-16]
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_sidesign_minib3d_LoadTexture
	add	esp,8
	inc	dword [eax+4]
	mov	esi,eax
	mov	eax,dword [ebx+8]
	dec	dword [eax+4]
	jnz	_573
	push	eax
	call	_bbGCFree
	add	esp,4
_573:
	mov	dword [ebx+8],esi
	push	_574
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-36]
	cmp	ebx,_bbNullObject
	jne	_576
	call	_brl_blitz_NullObjectError
_576:
	cmp	dword [ebx+8],_bbNullObject
	jne	_577
	push	_578
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_16
	call	_brl_blitz_DebugLog
	add	esp,4
_577:
	push	_579
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-20]
	cmp	ebx,_bbNullObject
	jne	_581
	call	_brl_blitz_NullObjectError
_581:
	push	dword [ebp-32]
	push	dword [ebp-36]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,12
_12:
	add	dword [ebp-32],1
_539:
	cmp	dword [ebp-32],edi
	jle	_14
_13:
	push	_582
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_584
	call	_brl_blitz_NullObjectError
_584:
	mov	ebx,dword [ebx+28]
	cmp	ebx,_bbNullObject
	jne	_586
	call	_brl_blitz_NullObjectError
_586:
	push	dword [ebp-20]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+68]
	add	esp,8
	push	_587
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-20]
	cmp	ebx,_bbNullObject
	jne	_589
	call	_brl_blitz_NullObjectError
_589:
	mov	byte [ebx+28],1
	push	_591
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-20]
	jmp	_212
_212:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_GetMaterial:
	push	ebp
	mov	ebp,esp
	sub	esp,12
	push	ebx
	push	esi
	push	edi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	mov	dword [ebp-12],_bbNullObject
	mov	eax,ebp
	push	eax
	push	_620
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_602
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-12],_bbNullObject
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_605
	call	_brl_blitz_NullObjectError
_605:
	mov	edi,dword [ebx+28]
	mov	ebx,edi
	cmp	ebx,_bbNullObject
	jne	_608
	call	_brl_blitz_NullObjectError
_608:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+140]
	add	esp,4
	mov	esi,eax
	jmp	_17
_19:
	mov	ebx,esi
	cmp	ebx,_bbNullObject
	jne	_613
	call	_brl_blitz_NullObjectError
_613:
	push	_c3d_calb3d_CB3DMaterial
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	dword [ebp-12],eax
	cmp	dword [ebp-12],_bbNullObject
	je	_17
	push	_614
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-12]
	cmp	ebx,_bbNullObject
	jne	_616
	call	_brl_blitz_NullObjectError
_616:
	mov	eax,dword [ebp-8]
	cmp	dword [ebx+24],eax
	jne	_617
	push	_618
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-12]
	jmp	_216
_617:
_17:
	mov	ebx,esi
	cmp	ebx,_bbNullObject
	jne	_611
	call	_brl_blitz_NullObjectError
_611:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_19
_18:
	push	_619
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,_bbNullObject
	jmp	_216
_216:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_AddMesh:
	push	ebp
	mov	ebp,esp
	sub	esp,40
	push	ebx
	push	esi
	push	edi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-8],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-12],eax
	mov	dword [ebp-16],_bbNullObject
	mov	dword [ebp-20],0
	mov	dword [ebp-24],_bbNullObject
	mov	dword [ebp-28],0
	mov	byte [ebp-4],0
	mov	dword [ebp-32],_bbNullObject
	mov	dword [ebp-36],_bbNullObject
	mov	eax,ebp
	push	eax
	push	_730
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_622
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	cmp	dword [ebp-12],_bbNullObject
	je	_623
	push	_624
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_c3d_calb3d_CB3DMesh
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-16],eax
	push	_626
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-16]
	cmp	ebx,_bbNullObject
	jne	_628
	call	_brl_blitz_NullObjectError
_628:
	mov	esi,dword [ebp-8]
	cmp	esi,_bbNullObject
	jne	_631
	call	_brl_blitz_NullObjectError
_631:
	mov	esi,dword [esi+12]
	cmp	esi,_bbNullObject
	jne	_633
	call	_brl_blitz_NullObjectError
_633:
	push	dword [ebp-12]
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+168]
	add	esp,8
	mov	dword [ebx+8],eax
	push	_634
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-16]
	cmp	ebx,_bbNullObject
	jne	_636
	call	_brl_blitz_NullObjectError
_636:
	push	dword [ebx+8]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_20
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	push	_637
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-16]
	cmp	esi,_bbNullObject
	jne	_639
	call	_brl_blitz_NullObjectError
_639:
	mov	ebx,dword [ebp-12]
	inc	dword [ebx+4]
	mov	eax,dword [esi+16]
	dec	dword [eax+4]
	jnz	_644
	push	eax
	call	_bbGCFree
	add	esp,4
_644:
	mov	dword [esi+16],ebx
	push	_645
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-16]
	cmp	ebx,_bbNullObject
	jne	_647
	call	_brl_blitz_NullObjectError
_647:
	cmp	dword [ebx+12],_bbNullObject
	je	_648
	push	_649
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-16]
	cmp	ebx,_bbNullObject
	jne	_651
	call	_brl_blitz_NullObjectError
_651:
	push	dword [ebx+12]
	call	_sidesign_minib3d_FreeEntity
	add	esp,4
_648:
	push	_652
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-16]
	cmp	esi,_bbNullObject
	jne	_654
	call	_brl_blitz_NullObjectError
_654:
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_657
	call	_brl_blitz_NullObjectError
_657:
	push	dword [ebx+20]
	call	dword [_sidesign_minib3d_TMesh+400]
	add	esp,4
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [esi+12]
	dec	dword [eax+4]
	jnz	_661
	push	eax
	call	_bbGCFree
	add	esp,4
_661:
	mov	dword [esi+12],ebx
	push	_662
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-16]
	cmp	esi,_bbNullObject
	jne	_664
	call	_brl_blitz_NullObjectError
_664:
	mov	ebx,dword [ebp-8]
	inc	dword [ebx+4]
	mov	eax,dword [esi+36]
	dec	dword [eax+4]
	jnz	_669
	push	eax
	call	_bbGCFree
	add	esp,4
_669:
	mov	dword [esi+36],ebx
	push	_670
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-20],0
	mov	dword [ebp-20],0
	mov	ebx,dword [ebp-16]
	cmp	ebx,_bbNullObject
	jne	_673
	call	_brl_blitz_NullObjectError
_673:
	mov	ebx,dword [ebx+16]
	cmp	ebx,_bbNullObject
	jne	_675
	call	_brl_blitz_NullObjectError
_675:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+56]
	add	esp,4
	sub	eax,1
	mov	dword [ebp-40],eax
	jmp	_676
_23:
	push	_678
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-16]
	cmp	ebx,_bbNullObject
	jne	_680
	call	_brl_blitz_NullObjectError
_680:
	mov	ebx,dword [ebx+16]
	cmp	ebx,_bbNullObject
	jne	_682
	call	_brl_blitz_NullObjectError
_682:
	push	dword [ebp-20]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,8
	mov	dword [ebp-24],eax
	push	_684
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	cmp	dword [ebp-24],_bbNullObject
	je	_685
	push	_686
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-24]
	cmp	ebx,_bbNullObject
	jne	_688
	call	_brl_blitz_NullObjectError
_688:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	mov	dword [ebp-28],eax
	push	_690
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	byte [ebp-4],0
	push	_692
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-32],_bbNullObject
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_695
	call	_brl_blitz_NullObjectError
_695:
	mov	edi,dword [ebx+28]
	mov	ebx,edi
	cmp	ebx,_bbNullObject
	jne	_698
	call	_brl_blitz_NullObjectError
_698:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+140]
	add	esp,4
	mov	esi,eax
	jmp	_24
_26:
	mov	ebx,esi
	cmp	ebx,_bbNullObject
	jne	_703
	call	_brl_blitz_NullObjectError
_703:
	push	_c3d_calb3d_CB3DMaterial
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	dword [ebp-32],eax
	cmp	dword [ebp-32],_bbNullObject
	je	_24
	push	_704
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-32]
	cmp	ebx,_bbNullObject
	jne	_706
	call	_brl_blitz_NullObjectError
_706:
	mov	eax,dword [ebp-28]
	cmp	dword [ebx+24],eax
	jne	_707
	push	_708
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	byte [ebp-4],1
	push	_709
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	jmp	_25
_707:
_24:
	mov	ebx,esi
	cmp	ebx,_bbNullObject
	jne	_701
	call	_brl_blitz_NullObjectError
_701:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_26
_25:
	push	_710
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	movzx	eax,byte [ebp-4]
	mov	eax,eax
	cmp	eax,0
	jne	_711
	push	_712
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_c3d_calb3d_CB3DMaterial
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-36],eax
	push	_714
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-36]
	cmp	ebx,_bbNullObject
	jne	_716
	call	_brl_blitz_NullObjectError
_716:
	mov	eax,dword [ebp-28]
	mov	dword [ebx+24],eax
	push	_718
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_720
	call	_brl_blitz_NullObjectError
_720:
	mov	ebx,dword [ebx+28]
	cmp	ebx,_bbNullObject
	jne	_722
	call	_brl_blitz_NullObjectError
_722:
	push	dword [ebp-36]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+68]
	add	esp,8
_711:
_685:
_21:
	add	dword [ebp-20],1
_676:
	mov	eax,dword [ebp-40]
	cmp	dword [ebp-20],eax
	jle	_23
_22:
	push	_723
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_725
	call	_brl_blitz_NullObjectError
_725:
	mov	ebx,dword [ebx+24]
	cmp	ebx,_bbNullObject
	jne	_727
	call	_brl_blitz_NullObjectError
_727:
	push	dword [ebp-16]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+68]
	add	esp,8
	push	_728
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-16]
	jmp	_220
_623:
	push	_729
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,_bbNullObject
	jmp	_220
_220:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_Build:
	push	ebp
	mov	ebp,esp
	sub	esp,68
	push	ebx
	push	esi
	push	edi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	dword [ebp-8],_bbNullObject
	mov	dword [ebp-12],_bbNullObject
	mov	dword [ebp-16],0
	mov	dword [ebp-20],0
	mov	dword [ebp-24],0
	mov	dword [ebp-28],0
	mov	dword [ebp-32],0
	mov	dword [ebp-36],0
	mov	dword [ebp-40],_bbEmptyArray
	mov	dword [ebp-44],_bbEmptyArray
	mov	eax,ebp
	push	eax
	push	_920
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_736
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_738
	call	_brl_blitz_NullObjectError
_738:
	mov	ebx,dword [ebx+12]
	cmp	ebx,_bbNullObject
	jne	_740
	call	_brl_blitz_NullObjectError
_740:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+208]
	add	esp,4
	cmp	eax,_bbNullObject
	jne	_741
	push	_742
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_27
	call	_brl_blitz_DebugLog
	add	esp,4
	push	_743
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,0
	jmp	_223
_741:
	push	_744
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_746
	call	_brl_blitz_NullObjectError
_746:
	mov	ebx,dword [ebx+12]
	cmp	ebx,_bbNullObject
	jne	_748
	call	_brl_blitz_NullObjectError
_748:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+208]
	add	esp,4
	mov	ebx,eax
	cmp	ebx,_bbNullObject
	jne	_750
	call	_brl_blitz_NullObjectError
_750:
	mov	esi,dword [ebp-4]
	cmp	esi,_bbNullObject
	jne	_752
	call	_brl_blitz_NullObjectError
_752:
	push	dword [esi+12]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+80]
	add	esp,8
	push	_753
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-8],_bbNullObject
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_756
	call	_brl_blitz_NullObjectError
_756:
	mov	eax,dword [ebx+28]
	mov	dword [ebp-64],eax
	mov	ebx,dword [ebp-64]
	cmp	ebx,_bbNullObject
	jne	_759
	call	_brl_blitz_NullObjectError
_759:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+140]
	add	esp,4
	mov	dword [ebp-60],eax
	jmp	_28
_30:
	mov	ebx,dword [ebp-60]
	cmp	ebx,_bbNullObject
	jne	_764
	call	_brl_blitz_NullObjectError
_764:
	push	_c3d_calb3d_CB3DMaterial
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	dword [ebp-8],eax
	cmp	dword [ebp-8],_bbNullObject
	je	_28
	push	_765
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_767
	call	_brl_blitz_NullObjectError
_767:
	mov	esi,dword [ebx+12]
	cmp	esi,_bbNullObject
	jne	_769
	call	_brl_blitz_NullObjectError
_769:
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_771
	call	_brl_blitz_NullObjectError
_771:
	push	dword [ebx+24]
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+124]
	add	esp,8
	push	_772
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_774
	call	_brl_blitz_NullObjectError
_774:
	mov	edi,dword [ebx+12]
	cmp	edi,_bbNullObject
	jne	_776
	call	_brl_blitz_NullObjectError
_776:
	mov	esi,dword [ebp-8]
	cmp	esi,_bbNullObject
	jne	_778
	call	_brl_blitz_NullObjectError
_778:
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_780
	call	_brl_blitz_NullObjectError
_780:
	push	dword [ebx+24]
	push	0
	push	dword [esi+24]
	push	edi
	mov	eax,dword [edi]
	call	dword [eax+160]
	add	esp,16
_28:
	mov	ebx,dword [ebp-60]
	cmp	ebx,_bbNullObject
	jne	_762
	call	_brl_blitz_NullObjectError
_762:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_30
_29:
	push	_781
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-4]
	cmp	esi,_bbNullObject
	jne	_783
	call	_brl_blitz_NullObjectError
_783:
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_786
	call	_brl_blitz_NullObjectError
_786:
	mov	ebx,dword [ebx+12]
	cmp	ebx,_bbNullObject
	jne	_788
	call	_brl_blitz_NullObjectError
_788:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+204]
	add	esp,4
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [esi+16]
	dec	dword [eax+4]
	jnz	_792
	push	eax
	call	_bbGCFree
	add	esp,4
_792:
	mov	dword [esi+16],ebx
	push	_793
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-12],_bbNullObject
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_796
	call	_brl_blitz_NullObjectError
_796:
	mov	eax,dword [ebx+24]
	mov	dword [ebp-56],eax
	mov	ebx,dword [ebp-56]
	cmp	ebx,_bbNullObject
	jne	_799
	call	_brl_blitz_NullObjectError
_799:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+140]
	add	esp,4
	mov	edi,eax
	jmp	_31
_33:
	mov	ebx,edi
	cmp	ebx,_bbNullObject
	jne	_804
	call	_brl_blitz_NullObjectError
_804:
	push	_c3d_calb3d_CB3DMesh
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	dword [ebp-12],eax
	cmp	dword [ebp-12],_bbNullObject
	je	_31
	push	_805
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_807
	call	_brl_blitz_NullObjectError
_807:
	mov	esi,dword [ebx+16]
	cmp	esi,_bbNullObject
	jne	_809
	call	_brl_blitz_NullObjectError
_809:
	mov	ebx,dword [ebp-12]
	cmp	ebx,_bbNullObject
	jne	_811
	call	_brl_blitz_NullObjectError
_811:
	push	dword [ebx+8]
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+52]
	add	esp,8
_31:
	mov	ebx,edi
	cmp	ebx,_bbNullObject
	jne	_802
	call	_brl_blitz_NullObjectError
_802:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_33
_32:
	push	_812
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_814
	call	_brl_blitz_NullObjectError
_814:
	cmp	dword [ebx+16],_bbNullObject
	je	_815
	push	_816
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_34
	call	_brl_blitz_DebugLog
	add	esp,4
_815:
	push	_817
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_819
	call	_brl_blitz_NullObjectError
_819:
	movzx	eax,byte [ebx+47]
	mov	eax,eax
	cmp	eax,1
	jne	_820
_820:
	push	_821
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-4]
	cmp	esi,_bbNullObject
	jne	_823
	call	_brl_blitz_NullObjectError
_823:
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_826
	call	_brl_blitz_NullObjectError
_826:
	mov	ebx,dword [ebx+16]
	cmp	ebx,_bbNullObject
	jne	_828
	call	_brl_blitz_NullObjectError
_828:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+88]
	add	esp,4
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [esi+40]
	dec	dword [eax+4]
	jnz	_832
	push	eax
	call	_bbGCFree
	add	esp,4
_832:
	mov	dword [esi+40],ebx
	push	_833
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_835
	call	_brl_blitz_NullObjectError
_835:
	mov	ebx,dword [ebx+40]
	cmp	ebx,_bbNullObject
	jne	_837
	call	_brl_blitz_NullObjectError
_837:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+56]
	add	esp,4
	push	_838
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_840
	call	_brl_blitz_NullObjectError
_840:
	mov	ebx,dword [ebx+40]
	cmp	ebx,_bbNullObject
	jne	_842
	call	_brl_blitz_NullObjectError
_842:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+88]
	add	esp,4
	mov	dword [ebp-16],eax
	push	_844
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-16]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_35
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	push	_845
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-20],0
	mov	dword [ebp-20],0
	mov	eax,dword [ebp-16]
	mov	dword [ebp-68],eax
	jmp	_847
_38:
	push	_849
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_851
	call	_brl_blitz_NullObjectError
_851:
	mov	eax,dword [ebx+24]
	mov	dword [ebp-48],eax
	mov	ebx,dword [ebp-48]
	cmp	ebx,_bbNullObject
	jne	_854
	call	_brl_blitz_NullObjectError
_854:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+140]
	add	esp,4
	mov	dword [ebp-52],eax
	jmp	_39
_41:
	mov	ebx,dword [ebp-52]
	cmp	ebx,_bbNullObject
	jne	_859
	call	_brl_blitz_NullObjectError
_859:
	push	_c3d_calb3d_CB3DMesh
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	dword [ebp-12],eax
	cmp	dword [ebp-12],_bbNullObject
	je	_39
	push	_860
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-12]
	cmp	ebx,_bbNullObject
	jne	_862
	call	_brl_blitz_NullObjectError
_862:
	mov	eax,dword [ebp-20]
	cmp	dword [ebx+8],eax
	jne	_863
	push	_864
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-20]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_42
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	push	_865
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_867
	call	_brl_blitz_NullObjectError
_867:
	mov	ebx,dword [ebx+40]
	cmp	ebx,_bbNullObject
	jne	_869
	call	_brl_blitz_NullObjectError
_869:
	push	dword [ebp-20]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+104]
	add	esp,8
	mov	dword [ebp-24],eax
	push	_871
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-24]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_43
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	push	_872
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-28],0
	mov	dword [ebp-28],0
	mov	eax,dword [ebp-24]
	sub	eax,1
	mov	edi,eax
	jmp	_874
_46:
	push	_876
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_878
	call	_brl_blitz_NullObjectError
_878:
	mov	esi,dword [ebx+40]
	cmp	esi,_bbNullObject
	jne	_880
	call	_brl_blitz_NullObjectError
_880:
	mov	ebx,dword [ebp-12]
	cmp	ebx,_bbNullObject
	jne	_882
	call	_brl_blitz_NullObjectError
_882:
	push	dword [ebp-28]
	push	dword [ebx+8]
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+136]
	add	esp,12
	push	_883
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_885
	call	_brl_blitz_NullObjectError
_885:
	mov	ebx,dword [ebx+40]
	cmp	ebx,_bbNullObject
	jne	_887
	call	_brl_blitz_NullObjectError
_887:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+112]
	add	esp,4
	mov	dword [ebp-32],eax
	push	_889
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_891
	call	_brl_blitz_NullObjectError
_891:
	mov	ebx,dword [ebx+40]
	cmp	ebx,_bbNullObject
	jne	_893
	call	_brl_blitz_NullObjectError
_893:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+72]
	add	esp,4
	mov	dword [ebp-36],eax
	push	_895
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-36]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_48
	push	dword [ebp-32]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_47
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	push	_896
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [ebp-36]
	imul	eax,3
	push	eax
	push	_897
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-40],eax
	push	_899
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [ebp-32]
	imul	eax,3
	push	eax
	push	_900
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-44],eax
	push	_902
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_904
	call	_brl_blitz_NullObjectError
_904:
	mov	ebx,dword [ebx+40]
	cmp	ebx,_bbNullObject
	jne	_906
	call	_brl_blitz_NullObjectError
_906:
	push	3
	push	dword [ebp-44]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+116]
	add	esp,12
	push	_907
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_909
	call	_brl_blitz_NullObjectError
_909:
	mov	ebx,dword [ebx+40]
	cmp	ebx,_bbNullObject
	jne	_911
	call	_brl_blitz_NullObjectError
_911:
	push	dword [ebp-40]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+76]
	add	esp,8
	push	_912
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-12]
	cmp	ebx,_bbNullObject
	jne	_914
	call	_brl_blitz_NullObjectError
_914:
	push	dword [ebp-40]
	push	dword [ebp-44]
	push	dword [ebp-28]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,16
_44:
	add	dword [ebp-28],1
_874:
	cmp	dword [ebp-28],edi
	jle	_46
_45:
_863:
_39:
	mov	ebx,dword [ebp-52]
	cmp	ebx,_bbNullObject
	jne	_857
	call	_brl_blitz_NullObjectError
_857:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_41
_40:
_36:
	add	dword [ebp-20],1
_847:
	mov	eax,dword [ebp-68]
	cmp	dword [ebp-20],eax
	jle	_38
_37:
	push	_915
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_917
	call	_brl_blitz_NullObjectError
_917:
	mov	ebx,dword [ebx+40]
	cmp	ebx,_bbNullObject
	jne	_919
	call	_brl_blitz_NullObjectError
_919:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+60]
	add	esp,4
	mov	ebx,0
	jmp	_223
_223:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_Destroy:
	push	ebp
	mov	ebp,esp
	sub	esp,24
	push	ebx
	push	esi
	push	edi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	dword [ebp-8],_bbNullObject
	mov	dword [ebp-12],_bbNullObject
	mov	dword [ebp-16],_bbNullObject
	mov	eax,ebp
	push	eax
	push	_992
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_931
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-8],_bbNullObject
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_934
	call	_brl_blitz_NullObjectError
_934:
	mov	edi,dword [ebx+24]
	mov	ebx,edi
	cmp	ebx,_bbNullObject
	jne	_937
	call	_brl_blitz_NullObjectError
_937:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+140]
	add	esp,4
	mov	ebx,eax
	jmp	_49
_51:
	cmp	ebx,_bbNullObject
	jne	_942
	call	_brl_blitz_NullObjectError
_942:
	push	_c3d_calb3d_CB3DMesh
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	dword [ebp-8],eax
	cmp	dword [ebp-8],_bbNullObject
	je	_49
	push	_943
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-8]
	cmp	esi,_bbNullObject
	jne	_945
	call	_brl_blitz_NullObjectError
_945:
	cmp	dword [esi+12],_bbNullObject
	je	_946
	push	_947
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-8]
	cmp	esi,_bbNullObject
	jne	_949
	call	_brl_blitz_NullObjectError
_949:
	push	dword [esi+12]
	call	_sidesign_minib3d_FreeEntity
	add	esp,4
_946:
_49:
	cmp	ebx,_bbNullObject
	jne	_940
	call	_brl_blitz_NullObjectError
_940:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_51
_50:
	push	_950
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-12],_bbNullObject
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_953
	call	_brl_blitz_NullObjectError
_953:
	mov	eax,dword [ebx+28]
	mov	dword [ebp-24],eax
	mov	ebx,dword [ebp-24]
	cmp	ebx,_bbNullObject
	jne	_956
	call	_brl_blitz_NullObjectError
_956:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+140]
	add	esp,4
	mov	dword [ebp-20],eax
	jmp	_52
_54:
	mov	ebx,dword [ebp-20]
	cmp	ebx,_bbNullObject
	jne	_961
	call	_brl_blitz_NullObjectError
_961:
	push	_c3d_calb3d_CB3DMaterial
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	dword [ebp-12],eax
	cmp	dword [ebp-12],_bbNullObject
	je	_52
	push	_962
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-16],_bbNullObject
	mov	ebx,dword [ebp-12]
	cmp	ebx,_bbNullObject
	jne	_965
	call	_brl_blitz_NullObjectError
_965:
	mov	edi,dword [ebx+40]
	mov	ebx,edi
	cmp	ebx,_bbNullObject
	jne	_968
	call	_brl_blitz_NullObjectError
_968:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+140]
	add	esp,4
	mov	esi,eax
	jmp	_55
_57:
	mov	ebx,esi
	cmp	ebx,_bbNullObject
	jne	_973
	call	_brl_blitz_NullObjectError
_973:
	push	_c3d_calb3d_CB3DTexture
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	dword [ebp-16],eax
	cmp	dword [ebp-16],_bbNullObject
	je	_55
	push	_974
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-16]
	cmp	ebx,_bbNullObject
	jne	_976
	call	_brl_blitz_NullObjectError
_976:
	push	dword [ebx+8]
	call	_sidesign_minib3d_FreeTexture
	add	esp,4
_55:
	mov	ebx,esi
	cmp	ebx,_bbNullObject
	jne	_971
	call	_brl_blitz_NullObjectError
_971:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_57
_56:
	push	_977
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-12]
	cmp	ebx,_bbNullObject
	jne	_979
	call	_brl_blitz_NullObjectError
_979:
	push	dword [ebx+8]
	call	_sidesign_minib3d_FreeBrush
	add	esp,4
_52:
	mov	ebx,dword [ebp-20]
	cmp	ebx,_bbNullObject
	jne	_959
	call	_brl_blitz_NullObjectError
_959:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_54
_53:
	push	_980
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_982
	call	_brl_blitz_NullObjectError
_982:
	push	dword [ebx+24]
	call	_brl_linkedlist_ClearList
	add	esp,4
	push	_983
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_985
	call	_brl_blitz_NullObjectError
_985:
	push	dword [ebx+28]
	call	_brl_linkedlist_ClearList
	add	esp,4
	push	_986
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_988
	call	_brl_blitz_NullObjectError
_988:
	push	dword [ebx+32]
	call	_brl_linkedlist_ClearList
	add	esp,4
	push	_989
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_991
	call	_brl_blitz_NullObjectError
_991:
	push	dword [ebx+36]
	call	_brl_linkedlist_ClearList
	add	esp,4
	mov	ebx,0
	jmp	_226
_226:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DModel_Update:
	push	ebp
	mov	ebp,esp
	sub	esp,64
	push	ebx
	push	esi
	push	edi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	fld	dword [ebp+12]
	fstp	dword [ebp-8]
	mov	dword [ebp-12],0
	mov	dword [ebp-16],0
	mov	dword [ebp-20],_bbNullObject
	mov	dword [ebp-24],0
	mov	dword [ebp-28],0
	mov	dword [ebp-32],0
	mov	dword [ebp-36],_bbEmptyArray
	mov	dword [ebp-40],_bbEmptyArray
	mov	dword [ebp-44],_bbEmptyArray
	mov	dword [ebp-48],_bbNullObject
	mov	dword [ebp-52],_bbNullObject
	mov	eax,ebp
	push	eax
	push	_1115
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_994
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_996
	call	_brl_blitz_NullObjectError
_996:
	cmp	dword [ebx+16],_bbNullObject
	jne	_997
	push	_998
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,-1
	jmp	_230
_997:
	push	_999
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1001
	call	_brl_blitz_NullObjectError
_1001:
	mov	ebx,dword [ebx+16]
	cmp	ebx,_bbNullObject
	jne	_1003
	call	_brl_blitz_NullObjectError
_1003:
	push	dword [ebp-8]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+124]
	add	esp,8
	push	_1004
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1006
	call	_brl_blitz_NullObjectError
_1006:
	mov	ebx,dword [ebx+40]
	cmp	ebx,_bbNullObject
	jne	_1008
	call	_brl_blitz_NullObjectError
_1008:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+56]
	add	esp,4
	push	_1009
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1011
	call	_brl_blitz_NullObjectError
_1011:
	mov	ebx,dword [ebx+40]
	cmp	ebx,_bbNullObject
	jne	_1013
	call	_brl_blitz_NullObjectError
_1013:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+88]
	add	esp,4
	mov	dword [ebp-12],eax
	push	_1015
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-16],0
	mov	dword [ebp-16],0
	mov	eax,dword [ebp-12]
	mov	dword [ebp-64],eax
	jmp	_1017
_60:
	push	_1019
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-20],_bbNullObject
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1022
	call	_brl_blitz_NullObjectError
_1022:
	mov	eax,dword [ebx+24]
	mov	dword [ebp-56],eax
	mov	ebx,dword [ebp-56]
	cmp	ebx,_bbNullObject
	jne	_1025
	call	_brl_blitz_NullObjectError
_1025:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+140]
	add	esp,4
	mov	dword [ebp-60],eax
	jmp	_61
_63:
	mov	ebx,dword [ebp-60]
	cmp	ebx,_bbNullObject
	jne	_1030
	call	_brl_blitz_NullObjectError
_1030:
	push	_c3d_calb3d_CB3DMesh
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	dword [ebp-20],eax
	cmp	dword [ebp-20],_bbNullObject
	je	_61
	push	_1031
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-20]
	cmp	ebx,_bbNullObject
	jne	_1033
	call	_brl_blitz_NullObjectError
_1033:
	mov	eax,dword [ebp-16]
	cmp	dword [ebx+8],eax
	jne	_1034
	push	_1035
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1037
	call	_brl_blitz_NullObjectError
_1037:
	mov	ebx,dword [ebx+40]
	cmp	ebx,_bbNullObject
	jne	_1039
	call	_brl_blitz_NullObjectError
_1039:
	push	dword [ebp-16]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+104]
	add	esp,8
	mov	dword [ebp-24],eax
	push	_1041
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-28],0
	mov	dword [ebp-28],0
	mov	eax,dword [ebp-24]
	sub	eax,1
	mov	edi,eax
	jmp	_1043
_66:
	push	_1045
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1047
	call	_brl_blitz_NullObjectError
_1047:
	mov	esi,dword [ebx+40]
	cmp	esi,_bbNullObject
	jne	_1049
	call	_brl_blitz_NullObjectError
_1049:
	mov	ebx,dword [ebp-20]
	cmp	ebx,_bbNullObject
	jne	_1051
	call	_brl_blitz_NullObjectError
_1051:
	push	dword [ebp-28]
	push	dword [ebx+8]
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+136]
	add	esp,12
	push	_1052
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1054
	call	_brl_blitz_NullObjectError
_1054:
	mov	ebx,dword [ebx+40]
	cmp	ebx,_bbNullObject
	jne	_1056
	call	_brl_blitz_NullObjectError
_1056:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+112]
	add	esp,4
	mov	dword [ebp-32],eax
	push	_1058
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [ebp-32]
	imul	eax,3
	push	eax
	push	_1059
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-36],eax
	push	_1061
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [ebp-32]
	imul	eax,3
	push	eax
	push	_1062
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-40],eax
	push	_1064
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [ebp-32]
	shl	eax,1
	push	eax
	push	_1065
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-44],eax
	push	_1067
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1069
	call	_brl_blitz_NullObjectError
_1069:
	mov	ebx,dword [ebx+40]
	cmp	ebx,_bbNullObject
	jne	_1071
	call	_brl_blitz_NullObjectError
_1071:
	push	3
	push	dword [ebp-36]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+116]
	add	esp,12
	push	_1072
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1074
	call	_brl_blitz_NullObjectError
_1074:
	mov	ebx,dword [ebx+40]
	cmp	ebx,_bbNullObject
	jne	_1076
	call	_brl_blitz_NullObjectError
_1076:
	push	3
	push	dword [ebp-40]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+92]
	add	esp,12
	push	_1077
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1079
	call	_brl_blitz_NullObjectError
_1079:
	mov	esi,dword [ebx+12]
	cmp	esi,_bbNullObject
	jne	_1081
	call	_brl_blitz_NullObjectError
_1081:
	mov	ebx,dword [ebp-20]
	cmp	ebx,_bbNullObject
	jne	_1083
	call	_brl_blitz_NullObjectError
_1083:
	push	dword [ebx+8]
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+172]
	add	esp,8
	mov	ebx,eax
	cmp	ebx,_bbNullObject
	jne	_1085
	call	_brl_blitz_NullObjectError
_1085:
	push	dword [ebp-28]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,8
	mov	dword [ebp-48],eax
	push	_1087
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1089
	call	_brl_blitz_NullObjectError
_1089:
	mov	esi,dword [ebx+40]
	cmp	esi,_bbNullObject
	jne	_1091
	call	_brl_blitz_NullObjectError
_1091:
	mov	ebx,dword [ebp-48]
	cmp	ebx,_bbNullObject
	jne	_1093
	call	_brl_blitz_NullObjectError
_1093:
	push	2
	push	dword [ebp-44]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+108]
	add	esp,16
	push	_1094
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-4]
	cmp	esi,_bbNullObject
	jne	_1096
	call	_brl_blitz_NullObjectError
_1096:
	mov	ebx,dword [ebp-48]
	cmp	ebx,_bbNullObject
	jne	_1098
	call	_brl_blitz_NullObjectError
_1098:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+80]
	add	esp,8
	mov	dword [ebp-52],eax
	push	_1100
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	cmp	dword [ebp-52],_bbNullObject
	je	_1101
	push	_1102
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-20]
	cmp	esi,_bbNullObject
	jne	_1104
	call	_brl_blitz_NullObjectError
_1104:
	mov	ebx,dword [ebp-52]
	cmp	ebx,_bbNullObject
	jne	_1106
	call	_brl_blitz_NullObjectError
_1106:
	push	dword [ebx+8]
	push	dword [esi+12]
	call	_sidesign_minib3d_PaintEntity
	add	esp,8
_1101:
	push	_1107
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-20]
	cmp	ebx,_bbNullObject
	jne	_1109
	call	_brl_blitz_NullObjectError
_1109:
	push	dword [ebp-44]
	push	dword [ebp-40]
	push	dword [ebp-36]
	push	dword [ebp-28]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+56]
	add	esp,20
_64:
	add	dword [ebp-28],1
_1043:
	cmp	dword [ebp-28],edi
	jle	_66
_65:
_1034:
_61:
	mov	ebx,dword [ebp-60]
	cmp	ebx,_bbNullObject
	jne	_1028
	call	_brl_blitz_NullObjectError
_1028:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_63
_62:
_58:
	add	dword [ebp-16],1
_1017:
	mov	eax,dword [ebp-64]
	cmp	dword [ebp-16],eax
	jle	_60
_59:
	push	_1110
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1112
	call	_brl_blitz_NullObjectError
_1112:
	mov	ebx,dword [ebx+40]
	cmp	ebx,_bbNullObject
	jne	_1114
	call	_brl_blitz_NullObjectError
_1114:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+60]
	add	esp,4
	mov	ebx,0
	jmp	_230
_230:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DMesh_New:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	push	ebp
	push	_1127
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	dword [ebp-4]
	call	_bbObjectCtor
	add	esp,4
	mov	eax,dword [ebp-4]
	mov	dword [eax],_c3d_calb3d_CB3DMesh
	mov	eax,dword [ebp-4]
	mov	dword [eax+8],0
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+12],edx
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+16],edx
	mov	edx,_bbEmptyArray
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+20],edx
	mov	edx,_bbEmptyString
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+24],edx
	mov	edx,_bbEmptyString
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+28],edx
	mov	eax,dword [ebp-4]
	mov	byte [eax+32],0
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+36],edx
	mov	ebx,0
	jmp	_233
_233:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DMesh_Delete:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
_236:
	mov	eax,dword [ebx+36]
	dec	dword [eax+4]
	jnz	_1130
	push	eax
	call	_bbGCFree
	add	esp,4
_1130:
	mov	eax,dword [ebx+28]
	dec	dword [eax+4]
	jnz	_1132
	push	eax
	call	_bbGCFree
	add	esp,4
_1132:
	mov	eax,dword [ebx+24]
	dec	dword [eax+4]
	jnz	_1134
	push	eax
	call	_bbGCFree
	add	esp,4
_1134:
	mov	eax,dword [ebx+20]
	dec	dword [eax+4]
	jnz	_1136
	push	eax
	call	_bbGCFree
	add	esp,4
_1136:
	mov	eax,dword [ebx+16]
	dec	dword [eax+4]
	jnz	_1138
	push	eax
	call	_bbGCFree
	add	esp,4
_1138:
	mov	eax,dword [ebx+12]
	dec	dword [eax+4]
	jnz	_1140
	push	eax
	call	_bbGCFree
	add	esp,4
_1140:
	mov	eax,0
	jmp	_1128
_1128:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DMesh_PaintMaterial:
	push	ebp
	mov	ebp,esp
	sub	esp,12
	push	ebx
	push	esi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	mov	eax,dword [ebp+16]
	mov	dword [ebp-12],eax
	push	ebp
	push	_1150
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_1141
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1144
	call	_brl_blitz_NullObjectError
_1144:
	mov	esi,dword [ebx+20]
	mov	ebx,dword [ebp-8]
	cmp	ebx,dword [esi+20]
	jb	_1147
	call	_brl_blitz_ArrayBoundsError
_1147:
	mov	ebx,dword [esi+ebx*4+24]
	cmp	ebx,_bbNullObject
	jne	_1149
	call	_brl_blitz_NullObjectError
_1149:
	push	dword [ebp-12]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,8
	mov	ebx,0
	jmp	_241
_241:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DMesh_Build:
	push	ebp
	mov	ebp,esp
	sub	esp,44
	push	ebx
	push	esi
	push	edi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	mov	eax,dword [ebp+16]
	mov	dword [ebp-12],eax
	mov	eax,dword [ebp+20]
	mov	dword [ebp-16],eax
	mov	dword [ebp-20],0
	mov	dword [ebp-24],0
	mov	eax,ebp
	push	eax
	push	_1265
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_1151
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1153
	call	_brl_blitz_NullObjectError
_1153:
	cmp	dword [ebx+16],_bbNullObject
	jne	_1154
	push	_1155
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_67
	call	_brl_blitz_DebugLog
	add	esp,4
	push	_1156
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	byte [ebp-28],0
	jmp	_247
_1154:
	push	_1157
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1159
	call	_brl_blitz_NullObjectError
_1159:
	cmp	dword [ebx+12],_bbNullObject
	jne	_1160
	push	_1161
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-4]
	cmp	esi,_bbNullObject
	jne	_1163
	call	_brl_blitz_NullObjectError
_1163:
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1166
	call	_brl_blitz_NullObjectError
_1166:
	mov	ebx,dword [ebx+36]
	cmp	ebx,_bbNullObject
	jne	_1168
	call	_brl_blitz_NullObjectError
_1168:
	push	dword [ebx+20]
	call	dword [_sidesign_minib3d_TMesh+400]
	add	esp,4
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [esi+12]
	dec	dword [eax+4]
	jnz	_1172
	push	eax
	call	_bbGCFree
	add	esp,4
_1172:
	mov	dword [esi+12],ebx
_1160:
	push	_1173
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1175
	call	_brl_blitz_NullObjectError
_1175:
	mov	eax,dword [ebx+20]
	mov	eax,dword [eax+20]
	sub	eax,1
	cmp	dword [ebp-8],eax
	jle	_1176
	push	_1177
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1179
	call	_brl_blitz_NullObjectError
_1179:
	mov	edi,ebx
	mov	esi,dword [ebp-4]
	cmp	esi,_bbNullObject
	jne	_1182
	call	_brl_blitz_NullObjectError
_1182:
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1184
	call	_brl_blitz_NullObjectError
_1184:
	mov	eax,dword [ebx+20]
	mov	eax,dword [eax+20]
	add	eax,1
	push	eax
	push	0
	push	dword [esi+20]
	push	_1185
	call	_bbArraySlice
	add	esp,16
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [edi+20]
	dec	dword [eax+4]
	jnz	_1189
	push	eax
	call	_bbGCFree
	add	esp,4
_1189:
	mov	dword [edi+20],ebx
	push	_1190
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1192
	call	_brl_blitz_NullObjectError
_1192:
	mov	esi,dword [ebx+20]
	mov	ebx,dword [ebp-8]
	cmp	ebx,dword [esi+20]
	jb	_1195
	call	_brl_blitz_ArrayBoundsError
_1195:
	shl	ebx,2
	add	esi,ebx
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1198
	call	_brl_blitz_NullObjectError
_1198:
	mov	ebx,dword [ebx+12]
	cmp	ebx,_bbNullObject
	jne	_1200
	call	_brl_blitz_NullObjectError
_1200:
	push	_bbNullObject
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+464]
	add	esp,8
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [esi+24]
	dec	dword [eax+4]
	jnz	_1204
	push	eax
	call	_bbGCFree
	add	esp,4
_1204:
	mov	dword [esi+24],ebx
	push	_1205
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-8]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_68
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
	jmp	_1206
_1176:
	push	_1207
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1209
	call	_brl_blitz_NullObjectError
_1209:
	mov	esi,dword [ebx+20]
	mov	ebx,dword [ebp-8]
	cmp	ebx,dword [esi+20]
	jb	_1212
	call	_brl_blitz_ArrayBoundsError
_1212:
	mov	ebx,dword [esi+ebx*4+24]
	cmp	ebx,_bbNullObject
	jne	_1214
	call	_brl_blitz_NullObjectError
_1214:
	push	1
	push	1
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+56]
	add	esp,12
	push	_1215
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-8]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_69
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitz_DebugLog
	add	esp,4
_1206:
	push	_1216
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-20],0
	mov	dword [ebp-20],0
	mov	eax,dword [ebp-12]
	mov	eax,dword [eax+20]
	sub	eax,1
	mov	dword [ebp-40],eax
	jmp	_1218
_72:
	push	_1220
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1222
	call	_brl_blitz_NullObjectError
_1222:
	mov	esi,dword [ebx+20]
	mov	ebx,dword [ebp-8]
	cmp	ebx,dword [esi+20]
	jb	_1225
	call	_brl_blitz_ArrayBoundsError
_1225:
	mov	edi,dword [esi+ebx*4+24]
	cmp	edi,_bbNullObject
	jne	_1227
	call	_brl_blitz_NullObjectError
_1227:
	mov	eax,dword [ebp-20]
	mov	dword [ebp-32],eax
	mov	eax,dword [ebp-12]
	mov	eax,dword [eax+20]
	cmp	dword [ebp-32],eax
	jb	_1229
	call	_brl_blitz_ArrayBoundsError
_1229:
	mov	eax,dword [ebp-20]
	add	eax,1
	mov	esi,eax
	mov	eax,dword [ebp-12]
	cmp	esi,dword [eax+20]
	jb	_1231
	call	_brl_blitz_ArrayBoundsError
_1231:
	mov	eax,dword [ebp-20]
	add	eax,2
	mov	ebx,eax
	mov	eax,dword [ebp-12]
	cmp	ebx,dword [eax+20]
	jb	_1233
	call	_brl_blitz_ArrayBoundsError
_1233:
	push	0
	push	0
	push	0
	mov	eax,dword [ebp-12]
	push	dword [eax+ebx*4+24]
	mov	eax,dword [ebp-12]
	push	dword [eax+esi*4+24]
	mov	edx,dword [ebp-12]
	mov	eax,dword [ebp-32]
	push	dword [edx+eax*4+24]
	push	edi
	mov	eax,dword [edi]
	call	dword [eax+60]
	add	esp,28
_70:
	add	dword [ebp-20],3
_1218:
	mov	eax,dword [ebp-40]
	cmp	dword [ebp-20],eax
	jle	_72
_71:
	push	_1234
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-24],0
	mov	dword [ebp-24],0
	mov	eax,dword [ebp-16]
	mov	eax,dword [eax+20]
	sub	eax,1
	mov	dword [ebp-44],eax
	jmp	_1236
_75:
	push	_1238
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1240
	call	_brl_blitz_NullObjectError
_1240:
	mov	esi,dword [ebx+20]
	mov	ebx,dword [ebp-8]
	cmp	ebx,dword [esi+20]
	jb	_1243
	call	_brl_blitz_ArrayBoundsError
_1243:
	mov	edi,dword [esi+ebx*4+24]
	cmp	edi,_bbNullObject
	jne	_1245
	call	_brl_blitz_NullObjectError
_1245:
	mov	eax,dword [ebp-24]
	mov	dword [ebp-36],eax
	mov	eax,dword [ebp-16]
	mov	eax,dword [eax+20]
	cmp	dword [ebp-36],eax
	jb	_1247
	call	_brl_blitz_ArrayBoundsError
_1247:
	mov	eax,dword [ebp-24]
	add	eax,1
	mov	esi,eax
	mov	eax,dword [ebp-16]
	cmp	esi,dword [eax+20]
	jb	_1249
	call	_brl_blitz_ArrayBoundsError
_1249:
	mov	eax,dword [ebp-24]
	add	eax,2
	mov	ebx,eax
	mov	eax,dword [ebp-16]
	cmp	ebx,dword [eax+20]
	jb	_1251
	call	_brl_blitz_ArrayBoundsError
_1251:
	mov	eax,dword [ebp-16]
	movzx	eax,word [eax+ebx*2+24]
	mov	eax,eax
	push	eax
	mov	eax,dword [ebp-16]
	movzx	eax,word [eax+esi*2+24]
	mov	eax,eax
	push	eax
	mov	edx,dword [ebp-16]
	mov	eax,dword [ebp-36]
	movzx	eax,word [edx+eax*2+24]
	mov	eax,eax
	push	eax
	push	edi
	mov	eax,dword [edi]
	call	dword [eax+64]
	add	esp,16
_73:
	add	dword [ebp-24],3
_1236:
	mov	eax,dword [ebp-44]
	cmp	dword [ebp-24],eax
	jle	_75
_74:
	push	_1252
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1254
	call	_brl_blitz_NullObjectError
_1254:
	mov	esi,dword [ebx+20]
	mov	ebx,dword [ebp-8]
	cmp	ebx,dword [esi+20]
	jb	_1257
	call	_brl_blitz_ArrayBoundsError
_1257:
	mov	ebx,dword [esi+ebx*4+24]
	cmp	ebx,_bbNullObject
	jne	_1259
	call	_brl_blitz_NullObjectError
_1259:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+148]
	add	esp,4
	push	_1260
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1262
	call	_brl_blitz_NullObjectError
_1262:
	mov	byte [ebx+32],1
	push	_1264
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	byte [ebp-28],1
	jmp	_247
_247:
	call	dword [_bbOnDebugLeaveScope]
	movzx	eax,byte [ebp-28]
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DMesh_Update:
	push	ebp
	mov	ebp,esp
	sub	esp,20
	push	ebx
	push	esi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	mov	eax,dword [ebp+16]
	mov	dword [ebp-12],eax
	mov	eax,dword [ebp+20]
	mov	dword [ebp-16],eax
	mov	eax,dword [ebp+24]
	mov	dword [ebp-20],eax
	mov	eax,ebp
	push	eax
	push	_1317
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_1269
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1271
	call	_brl_blitz_NullObjectError
_1271:
	mov	esi,dword [ebx+20]
	mov	ebx,dword [ebp-8]
	cmp	ebx,dword [esi+20]
	jb	_1274
	call	_brl_blitz_ArrayBoundsError
_1274:
	mov	esi,dword [esi+ebx*4+24]
	cmp	esi,_bbNullObject
	jne	_1276
	call	_brl_blitz_NullObjectError
_1276:
	mov	ebx,dword [ebp-12]
	inc	dword [ebx+4]
	mov	eax,dword [esi+20]
	dec	dword [eax+4]
	jnz	_1281
	push	eax
	call	_bbGCFree
	add	esp,4
_1281:
	mov	dword [esi+20],ebx
	push	_1282
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1284
	call	_brl_blitz_NullObjectError
_1284:
	mov	esi,dword [ebx+20]
	mov	ebx,dword [ebp-8]
	cmp	ebx,dword [esi+20]
	jb	_1287
	call	_brl_blitz_ArrayBoundsError
_1287:
	mov	esi,dword [esi+ebx*4+24]
	cmp	esi,_bbNullObject
	jne	_1289
	call	_brl_blitz_NullObjectError
_1289:
	mov	ebx,dword [ebp-16]
	inc	dword [ebx+4]
	mov	eax,dword [esi+32]
	dec	dword [eax+4]
	jnz	_1294
	push	eax
	call	_bbGCFree
	add	esp,4
_1294:
	mov	dword [esi+32],ebx
	push	_1295
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1297
	call	_brl_blitz_NullObjectError
_1297:
	mov	esi,dword [ebx+20]
	mov	ebx,dword [ebp-8]
	cmp	ebx,dword [esi+20]
	jb	_1300
	call	_brl_blitz_ArrayBoundsError
_1300:
	mov	esi,dword [esi+ebx*4+24]
	cmp	esi,_bbNullObject
	jne	_1302
	call	_brl_blitz_NullObjectError
_1302:
	mov	ebx,dword [ebp-20]
	inc	dword [ebx+4]
	mov	eax,dword [esi+24]
	dec	dword [eax+4]
	jnz	_1307
	push	eax
	call	_bbGCFree
	add	esp,4
_1307:
	mov	dword [esi+24],ebx
	push	_1308
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1310
	call	_brl_blitz_NullObjectError
_1310:
	mov	esi,dword [ebx+20]
	mov	ebx,dword [ebp-8]
	cmp	ebx,dword [esi+20]
	jb	_1313
	call	_brl_blitz_ArrayBoundsError
_1313:
	mov	ebx,dword [esi+ebx*4+24]
	cmp	ebx,_bbNullObject
	jne	_1315
	call	_brl_blitz_NullObjectError
_1315:
	or	dword [ebx+96],7
	mov	ebx,0
	jmp	_254
_254:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DMaterial_New:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	esi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,ebp
	push	eax
	push	_1377
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	dword [ebp-4]
	call	_bbObjectCtor
	add	esp,4
	mov	eax,dword [ebp-4]
	mov	dword [eax],_c3d_calb3d_CB3DMaterial
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+8],edx
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+12],edx
	mov	eax,dword [ebp-4]
	mov	dword [eax+16],0
	push	3
	push	_1322
	call	_bbArrayNew1D
	add	esp,8
	inc	dword [eax+4]
	mov	edx,dword [ebp-4]
	mov	dword [edx+20],eax
	mov	eax,dword [ebp-4]
	mov	dword [eax+24],0
	mov	eax,dword [ebp-4]
	mov	byte [eax+28],0
	mov	edx,_bbEmptyString
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+32],edx
	mov	edx,_bbEmptyString
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+36],edx
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+40],edx
	push	_1327
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-4]
	cmp	esi,_bbNullObject
	jne	_1330
	call	_brl_blitz_NullObjectError
_1330:
	push	1132396544
	push	1132396544
	push	1132396544
	call	dword [_sidesign_minib3d_TBrush+56]
	add	esp,12
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [esi+8]
	dec	dword [eax+4]
	jnz	_1335
	push	eax
	call	_bbGCFree
	add	esp,4
_1335:
	mov	dword [esi+8],ebx
	push	_1336
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1338
	call	_brl_blitz_NullObjectError
_1338:
	mov	esi,dword [ebx+20]
	mov	ebx,0
	cmp	ebx,dword [esi+20]
	jb	_1341
	call	_brl_blitz_ArrayBoundsError
_1341:
	shl	ebx,2
	add	esi,ebx
	mov	dword [esi+24],255
	push	_1343
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1345
	call	_brl_blitz_NullObjectError
_1345:
	mov	esi,dword [ebx+20]
	mov	ebx,1
	cmp	ebx,dword [esi+20]
	jb	_1348
	call	_brl_blitz_ArrayBoundsError
_1348:
	shl	ebx,2
	add	esi,ebx
	mov	dword [esi+24],255
	push	_1350
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1352
	call	_brl_blitz_NullObjectError
_1352:
	mov	esi,dword [ebx+20]
	mov	ebx,2
	cmp	ebx,dword [esi+20]
	jb	_1355
	call	_brl_blitz_ArrayBoundsError
_1355:
	shl	ebx,2
	add	esi,ebx
	mov	dword [esi+24],255
	push	_1357
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-4]
	cmp	esi,_bbNullObject
	jne	_1359
	call	_brl_blitz_NullObjectError
_1359:
	push	_brl_linkedlist_TList
	call	_bbObjectNew
	add	esp,4
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [esi+40]
	dec	dword [eax+4]
	jnz	_1364
	push	eax
	call	_bbGCFree
	add	esp,4
_1364:
	mov	dword [esi+40],ebx
	push	_1365
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1367
	call	_brl_blitz_NullObjectError
_1367:
	mov	dword [ebx+24],0
	push	_1369
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-4]
	cmp	esi,_bbNullObject
	jne	_1371
	call	_brl_blitz_NullObjectError
_1371:
	mov	ebx,_76
	inc	dword [ebx+4]
	mov	eax,dword [esi+36]
	dec	dword [eax+4]
	jnz	_1376
	push	eax
	call	_bbGCFree
	add	esp,4
_1376:
	mov	dword [esi+36],ebx
	mov	ebx,0
	jmp	_257
_257:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DMaterial_Delete:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
_260:
	mov	eax,dword [ebx+40]
	dec	dword [eax+4]
	jnz	_1380
	push	eax
	call	_bbGCFree
	add	esp,4
_1380:
	mov	eax,dword [ebx+36]
	dec	dword [eax+4]
	jnz	_1382
	push	eax
	call	_bbGCFree
	add	esp,4
_1382:
	mov	eax,dword [ebx+32]
	dec	dword [eax+4]
	jnz	_1384
	push	eax
	call	_bbGCFree
	add	esp,4
_1384:
	mov	eax,dword [ebx+20]
	dec	dword [eax+4]
	jnz	_1386
	push	eax
	call	_bbGCFree
	add	esp,4
_1386:
	mov	eax,dword [ebx+12]
	dec	dword [eax+4]
	jnz	_1388
	push	eax
	call	_bbGCFree
	add	esp,4
_1388:
	mov	eax,dword [ebx+8]
	dec	dword [eax+4]
	jnz	_1390
	push	eax
	call	_bbGCFree
	add	esp,4
_1390:
	mov	eax,0
	jmp	_1378
_1378:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DMaterial_AddMap:
	push	ebp
	mov	ebp,esp
	sub	esp,12
	push	ebx
	push	esi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	mov	eax,dword [ebp+16]
	mov	dword [ebp-12],eax
	push	ebp
	push	_1415
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_1391
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1393
	call	_brl_blitz_NullObjectError
_1393:
	mov	esi,dword [ebx+8]
	cmp	esi,_bbNullObject
	jne	_1395
	call	_brl_blitz_NullObjectError
_1395:
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_1397
	call	_brl_blitz_NullObjectError
_1397:
	push	dword [ebp-12]
	push	0
	push	dword [ebx+8]
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+76]
	add	esp,16
	push	_1398
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_1400
	call	_brl_blitz_NullObjectError
_1400:
	mov	eax,dword [ebp-12]
	mov	dword [ebx+20],eax
	push	_1402
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-8]
	cmp	esi,_bbNullObject
	jne	_1404
	call	_brl_blitz_NullObjectError
_1404:
	mov	ebx,dword [ebp-4]
	inc	dword [ebx+4]
	mov	eax,dword [esi+28]
	dec	dword [eax+4]
	jnz	_1409
	push	eax
	call	_bbGCFree
	add	esp,4
_1409:
	mov	dword [esi+28],ebx
	push	_1410
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_1412
	call	_brl_blitz_NullObjectError
_1412:
	mov	ebx,dword [ebx+40]
	cmp	ebx,_bbNullObject
	jne	_1414
	call	_brl_blitz_NullObjectError
_1414:
	push	dword [ebp-8]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+68]
	add	esp,8
	mov	ebx,0
	jmp	_265
_265:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DTexture_New:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	push	ebp
	push	_1420
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	dword [ebp-4]
	call	_bbObjectCtor
	add	esp,4
	mov	eax,dword [ebp-4]
	mov	dword [eax],_c3d_calb3d_CB3DTexture
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+8],edx
	mov	edx,_bbEmptyString
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+12],edx
	mov	eax,dword [ebp-4]
	mov	dword [eax+16],2
	mov	eax,dword [ebp-4]
	mov	dword [eax+20],0
	mov	eax,dword [ebp-4]
	mov	dword [eax+24],0
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+28],edx
	mov	ebx,0
	jmp	_268
_268:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DTexture_Delete:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
_271:
	mov	eax,dword [ebx+28]
	dec	dword [eax+4]
	jnz	_1423
	push	eax
	call	_bbGCFree
	add	esp,4
_1423:
	mov	eax,dword [ebx+12]
	dec	dword [eax+4]
	jnz	_1425
	push	eax
	call	_bbGCFree
	add	esp,4
_1425:
	mov	eax,dword [ebx+8]
	dec	dword [eax+4]
	jnz	_1427
	push	eax
	call	_bbGCFree
	add	esp,4
_1427:
	mov	eax,0
	jmp	_1421
_1421:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DAnimation_New:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	push	ebp
	push	_1432
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	dword [ebp-4]
	call	_bbObjectCtor
	add	esp,4
	mov	eax,dword [ebp-4]
	mov	dword [eax],_c3d_calb3d_CB3DAnimation
	mov	edx,_bbEmptyString
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+8],edx
	mov	edx,_bbEmptyString
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+12],edx
	mov	eax,dword [ebp-4]
	mov	byte [eax+16],0
	mov	eax,dword [ebp-4]
	mov	dword [eax+20],0
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+24],edx
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+28],edx
	mov	ebx,0
	jmp	_274
_274:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DAnimation_Delete:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
_277:
	mov	eax,dword [ebx+28]
	dec	dword [eax+4]
	jnz	_1435
	push	eax
	call	_bbGCFree
	add	esp,4
_1435:
	mov	eax,dword [ebx+24]
	dec	dword [eax+4]
	jnz	_1437
	push	eax
	call	_bbGCFree
	add	esp,4
_1437:
	mov	eax,dword [ebx+12]
	dec	dword [eax+4]
	jnz	_1439
	push	eax
	call	_bbGCFree
	add	esp,4
_1439:
	mov	eax,dword [ebx+8]
	dec	dword [eax+4]
	jnz	_1441
	push	eax
	call	_bbGCFree
	add	esp,4
_1441:
	mov	eax,0
	jmp	_1433
_1433:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DMAnimation_New:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	push	ebp
	push	_1446
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	dword [ebp-4]
	call	_bbObjectCtor
	add	esp,4
	mov	eax,dword [ebp-4]
	mov	dword [eax],_c3d_calb3d_CB3DMAnimation
	mov	edx,_bbEmptyString
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+8],edx
	mov	edx,_bbEmptyString
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+12],edx
	mov	eax,dword [ebp-4]
	mov	byte [eax+16],0
	mov	eax,dword [ebp-4]
	mov	dword [eax+20],0
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+24],edx
	mov	edx,_bbNullObject
	inc	dword [edx+4]
	mov	eax,dword [ebp-4]
	mov	dword [eax+28],edx
	mov	ebx,0
	jmp	_280
_280:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__c3d_calb3d_CB3DMAnimation_Delete:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
_283:
	mov	eax,dword [ebx+28]
	dec	dword [eax+4]
	jnz	_1449
	push	eax
	call	_bbGCFree
	add	esp,4
_1449:
	mov	eax,dword [ebx+24]
	dec	dword [eax+4]
	jnz	_1451
	push	eax
	call	_bbGCFree
	add	esp,4
_1451:
	mov	eax,dword [ebx+12]
	dec	dword [eax+4]
	jnz	_1453
	push	eax
	call	_bbGCFree
	add	esp,4
_1453:
	mov	eax,dword [ebx+8]
	dec	dword [eax+4]
	jnz	_1455
	push	eax
	call	_bbGCFree
	add	esp,4
_1455:
	mov	eax,0
	jmp	_1447
_1447:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_287:
	dd	0
_286:
	db	"calb3d",0
	align	4
_285:
	dd	1
	dd	_286
	dd	0
_78:
	db	"CB3DModel",0
_79:
	db	"Skele",0
_80:
	db	":CalCoreSkeleton",0
_81:
	db	"CoreModel",0
_82:
	db	":CalCoreModel",0
_83:
	db	"CModel",0
_84:
	db	":CalModel",0
_85:
	db	"B3dModel",0
_86:
	db	":TMesh",0
_87:
	db	"Meshes",0
_88:
	db	":TList",0
_89:
	db	"Materials",0
_90:
	db	"Anims",0
_91:
	db	"MAnims",0
_92:
	db	"cal_renderer",0
_93:
	db	":CalRenderer",0
_94:
	db	"isloaded",0
_95:
	db	"b",0
_96:
	db	"rebuild",0
_97:
	db	"SkeletonLoaded",0
_98:
	db	"isanim",0
_99:
	db	"SkeleFile",0
_100:
	db	"$",0
_101:
	db	"SkeleName",0
_102:
	db	"New",0
_103:
	db	"()i",0
_104:
	db	"Delete",0
_105:
	db	"SetSkeleton",0
_106:
	db	"(:CalCoreSkeleton)i",0
_107:
	db	"Animate",0
_108:
	db	"(i)i",0
_109:
	db	"StopAnimation",0
_110:
	db	"StopMorphAnimation",0
_111:
	db	"AnimateMorph",0
_112:
	db	"AddAnim",0
_113:
	db	"(:CalCoreAnimation):CB3DAnimation",0
_114:
	db	"AddMorphAnim",0
_115:
	db	"(:CalCoreAnimatedMorph):CB3DMAnimation",0
_116:
	db	"AddMaterial",0
_117:
	db	"(:CalCoreMaterial,i,$):CB3DMaterial",0
_118:
	db	"GetMaterial",0
_119:
	db	"(i):CB3DMaterial",0
_120:
	db	"AddMesh",0
_121:
	db	"(:CalCoreMesh):CB3DMesh",0
_122:
	db	"Build",0
_123:
	db	"Destroy",0
_124:
	db	"Update",0
_125:
	db	"(f)i",0
	align	4
_77:
	dd	2
	dd	_78
	dd	3
	dd	_79
	dd	_80
	dd	8
	dd	3
	dd	_81
	dd	_82
	dd	12
	dd	3
	dd	_83
	dd	_84
	dd	16
	dd	3
	dd	_85
	dd	_86
	dd	20
	dd	3
	dd	_87
	dd	_88
	dd	24
	dd	3
	dd	_89
	dd	_88
	dd	28
	dd	3
	dd	_90
	dd	_88
	dd	32
	dd	3
	dd	_91
	dd	_88
	dd	36
	dd	3
	dd	_92
	dd	_93
	dd	40
	dd	3
	dd	_94
	dd	_95
	dd	44
	dd	3
	dd	_96
	dd	_95
	dd	45
	dd	3
	dd	_97
	dd	_95
	dd	46
	dd	3
	dd	_98
	dd	_95
	dd	47
	dd	3
	dd	_99
	dd	_100
	dd	48
	dd	3
	dd	_101
	dd	_100
	dd	52
	dd	6
	dd	_102
	dd	_103
	dd	16
	dd	6
	dd	_104
	dd	_103
	dd	20
	dd	6
	dd	_105
	dd	_106
	dd	48
	dd	6
	dd	_107
	dd	_108
	dd	52
	dd	6
	dd	_109
	dd	_108
	dd	56
	dd	6
	dd	_110
	dd	_108
	dd	60
	dd	6
	dd	_111
	dd	_108
	dd	64
	dd	6
	dd	_112
	dd	_113
	dd	68
	dd	6
	dd	_114
	dd	_115
	dd	72
	dd	6
	dd	_116
	dd	_117
	dd	76
	dd	6
	dd	_118
	dd	_119
	dd	80
	dd	6
	dd	_120
	dd	_121
	dd	84
	dd	6
	dd	_122
	dd	_103
	dd	88
	dd	6
	dd	_123
	dd	_103
	dd	92
	dd	6
	dd	_124
	dd	_125
	dd	96
	dd	0
	align	4
_c3d_calb3d_CB3DModel:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_77
	dd	56
	dd	__c3d_calb3d_CB3DModel_New
	dd	__c3d_calb3d_CB3DModel_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__c3d_calb3d_CB3DModel_SetSkeleton
	dd	__c3d_calb3d_CB3DModel_Animate
	dd	__c3d_calb3d_CB3DModel_StopAnimation
	dd	__c3d_calb3d_CB3DModel_StopMorphAnimation
	dd	__c3d_calb3d_CB3DModel_AnimateMorph
	dd	__c3d_calb3d_CB3DModel_AddAnim
	dd	__c3d_calb3d_CB3DModel_AddMorphAnim
	dd	__c3d_calb3d_CB3DModel_AddMaterial
	dd	__c3d_calb3d_CB3DModel_GetMaterial
	dd	__c3d_calb3d_CB3DModel_AddMesh
	dd	__c3d_calb3d_CB3DModel_Build
	dd	__c3d_calb3d_CB3DModel_Destroy
	dd	__c3d_calb3d_CB3DModel_Update
_127:
	db	"CB3DMesh",0
_128:
	db	"MeshID",0
_129:
	db	"i",0
_130:
	db	"B3dMesh",0
_131:
	db	"CMesh",0
_132:
	db	":CalCoreMesh",0
_133:
	db	"surf",0
_134:
	db	"[]:TSurface",0
_135:
	db	"filename",0
_136:
	db	"name",0
_137:
	db	"parent",0
_138:
	db	":CB3DModel",0
_139:
	db	"PaintMaterial",0
_140:
	db	"(i,:TBrush)i",0
_141:
	db	"(i,[]f,[]s)b",0
_142:
	db	"(i,[]f,[]f,[]f)i",0
	align	4
_126:
	dd	2
	dd	_127
	dd	3
	dd	_128
	dd	_129
	dd	8
	dd	3
	dd	_130
	dd	_86
	dd	12
	dd	3
	dd	_131
	dd	_132
	dd	16
	dd	3
	dd	_133
	dd	_134
	dd	20
	dd	3
	dd	_135
	dd	_100
	dd	24
	dd	3
	dd	_136
	dd	_100
	dd	28
	dd	3
	dd	_94
	dd	_95
	dd	32
	dd	3
	dd	_137
	dd	_138
	dd	36
	dd	6
	dd	_102
	dd	_103
	dd	16
	dd	6
	dd	_104
	dd	_103
	dd	20
	dd	6
	dd	_139
	dd	_140
	dd	48
	dd	6
	dd	_122
	dd	_141
	dd	52
	dd	6
	dd	_124
	dd	_142
	dd	56
	dd	0
	align	4
_c3d_calb3d_CB3DMesh:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_126
	dd	40
	dd	__c3d_calb3d_CB3DMesh_New
	dd	__c3d_calb3d_CB3DMesh_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__c3d_calb3d_CB3DMesh_PaintMaterial
	dd	__c3d_calb3d_CB3DMesh_Build
	dd	__c3d_calb3d_CB3DMesh_Update
_144:
	db	"CB3DMaterial",0
_145:
	db	"B3dBrush",0
_146:
	db	":TBrush",0
_147:
	db	"Cmat",0
_148:
	db	":CalCoreMaterial",0
_149:
	db	"flags",0
_150:
	db	"diffuse",0
_151:
	db	"[]i",0
_152:
	db	"matid",0
_153:
	db	"maps",0
_154:
	db	"AddMap",0
_155:
	db	"(:CB3DTexture,i)i",0
	align	4
_143:
	dd	2
	dd	_144
	dd	3
	dd	_145
	dd	_146
	dd	8
	dd	3
	dd	_147
	dd	_148
	dd	12
	dd	3
	dd	_149
	dd	_129
	dd	16
	dd	3
	dd	_150
	dd	_151
	dd	20
	dd	3
	dd	_152
	dd	_129
	dd	24
	dd	3
	dd	_94
	dd	_95
	dd	28
	dd	3
	dd	_135
	dd	_100
	dd	32
	dd	3
	dd	_136
	dd	_100
	dd	36
	dd	3
	dd	_153
	dd	_88
	dd	40
	dd	6
	dd	_102
	dd	_103
	dd	16
	dd	6
	dd	_104
	dd	_103
	dd	20
	dd	6
	dd	_154
	dd	_155
	dd	48
	dd	0
	align	4
_c3d_calb3d_CB3DMaterial:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_143
	dd	44
	dd	__c3d_calb3d_CB3DMaterial_New
	dd	__c3d_calb3d_CB3DMaterial_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__c3d_calb3d_CB3DMaterial_AddMap
_157:
	db	"CB3DTexture",0
_158:
	db	"tex",0
_159:
	db	":TTexture",0
_160:
	db	"blend",0
_161:
	db	"id",0
_162:
	db	"uvset",0
_163:
	db	"parentmat",0
_164:
	db	":CB3DMaterial",0
	align	4
_156:
	dd	2
	dd	_157
	dd	3
	dd	_158
	dd	_159
	dd	8
	dd	3
	dd	_136
	dd	_100
	dd	12
	dd	3
	dd	_160
	dd	_129
	dd	16
	dd	3
	dd	_161
	dd	_129
	dd	20
	dd	3
	dd	_162
	dd	_129
	dd	24
	dd	3
	dd	_163
	dd	_164
	dd	28
	dd	6
	dd	_102
	dd	_103
	dd	16
	dd	6
	dd	_104
	dd	_103
	dd	20
	dd	0
	align	4
_c3d_calb3d_CB3DTexture:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_156
	dd	32
	dd	__c3d_calb3d_CB3DTexture_New
	dd	__c3d_calb3d_CB3DTexture_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
_166:
	db	"CB3DAnimation",0
_167:
	db	"canim",0
_168:
	db	":CalCoreAnimation",0
	align	4
_165:
	dd	2
	dd	_166
	dd	3
	dd	_135
	dd	_100
	dd	8
	dd	3
	dd	_136
	dd	_100
	dd	12
	dd	3
	dd	_94
	dd	_95
	dd	16
	dd	3
	dd	_161
	dd	_129
	dd	20
	dd	3
	dd	_167
	dd	_168
	dd	24
	dd	3
	dd	_137
	dd	_138
	dd	28
	dd	6
	dd	_102
	dd	_103
	dd	16
	dd	6
	dd	_104
	dd	_103
	dd	20
	dd	0
	align	4
_c3d_calb3d_CB3DAnimation:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_165
	dd	32
	dd	__c3d_calb3d_CB3DAnimation_New
	dd	__c3d_calb3d_CB3DAnimation_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
_170:
	db	"CB3DMAnimation",0
_171:
	db	":CalCoreAnimatedMorph",0
	align	4
_169:
	dd	2
	dd	_170
	dd	3
	dd	_135
	dd	_100
	dd	8
	dd	3
	dd	_136
	dd	_100
	dd	12
	dd	3
	dd	_94
	dd	_95
	dd	16
	dd	3
	dd	_161
	dd	_129
	dd	20
	dd	3
	dd	_167
	dd	_171
	dd	24
	dd	3
	dd	_137
	dd	_138
	dd	28
	dd	6
	dd	_102
	dd	_103
	dd	16
	dd	6
	dd	_104
	dd	_103
	dd	20
	dd	0
	align	4
_c3d_calb3d_CB3DMAnimation:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_169
	dd	32
	dd	__c3d_calb3d_CB3DMAnimation_New
	dd	__c3d_calb3d_CB3DMAnimation_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
_350:
	db	"Self",0
	align	4
_349:
	dd	1
	dd	_102
	dd	2
	dd	_350
	dd	_138
	dd	-4
	dd	0
_301:
	db	"$BMXPATH/mod/c3d.mod/calb3d.mod/includes/cb3dmodel.bmx",0
	align	4
_300:
	dd	_301
	dd	21
	dd	3
	align	4
_309:
	dd	_301
	dd	22
	dd	3
	align	4
_317:
	dd	_301
	dd	23
	dd	3
	align	4
_325:
	dd	_301
	dd	24
	dd	3
	align	4
_333:
	dd	_301
	dd	25
	dd	3
	align	4
_341:
	dd	_301
	dd	26
	dd	3
_390:
	db	"skel",0
	align	4
_389:
	dd	1
	dd	_105
	dd	2
	dd	_350
	dd	_138
	dd	-4
	dd	2
	dd	_390
	dd	_80
	dd	-8
	dd	0
	align	4
_374:
	dd	_301
	dd	31
	dd	3
	align	4
_382:
	dd	_301
	dd	32
	dd	3
	align	4
_398:
	dd	1
	dd	_107
	dd	2
	dd	_350
	dd	_138
	dd	-4
	dd	2
	dd	_161
	dd	_129
	dd	-8
	dd	0
	align	4
_391:
	dd	_301
	dd	36
	dd	3
	align	4
_406:
	dd	1
	dd	_109
	dd	2
	dd	_350
	dd	_138
	dd	-4
	dd	2
	dd	_161
	dd	_129
	dd	-8
	dd	0
	align	4
_399:
	dd	_301
	dd	40
	dd	3
	align	4
_414:
	dd	1
	dd	_110
	dd	2
	dd	_350
	dd	_138
	dd	-4
	dd	2
	dd	_161
	dd	_129
	dd	-8
	dd	0
	align	4
_407:
	dd	_301
	dd	44
	dd	3
	align	4
_422:
	dd	1
	dd	_111
	dd	2
	dd	_350
	dd	_138
	dd	-4
	dd	2
	dd	_161
	dd	_129
	dd	-8
	dd	0
	align	4
_415:
	dd	_301
	dd	48
	dd	3
_454:
	db	"anm",0
_455:
	db	"c3db3da",0
_456:
	db	":CB3DAnimation",0
	align	4
_453:
	dd	1
	dd	_112
	dd	2
	dd	_350
	dd	_138
	dd	-4
	dd	2
	dd	_454
	dd	_168
	dd	-8
	dd	2
	dd	_455
	dd	_456
	dd	-12
	dd	0
	align	4
_423:
	dd	_301
	dd	55
	dd	3
	align	4
_425:
	dd	_301
	dd	56
	dd	4
	align	4
_427:
	dd	_301
	dd	57
	dd	4
	align	4
_435:
	dd	_301
	dd	58
	dd	4
	align	4
_5:
	dd	_bbStringClass
	dd	2147483647
	dd	9
	dw	65,78,73,77,32,73,68,58,32
	align	4
_438:
	dd	_301
	dd	59
	dd	4
	align	4
_446:
	dd	_301
	dd	60
	dd	4
	align	4
_451:
	dd	_301
	dd	61
	dd	4
	align	4
_452:
	dd	_301
	dd	63
	dd	3
_488:
	db	":CB3DMAnimation",0
	align	4
_487:
	dd	1
	dd	_114
	dd	2
	dd	_350
	dd	_138
	dd	-4
	dd	2
	dd	_454
	dd	_171
	dd	-8
	dd	2
	dd	_455
	dd	_488
	dd	-12
	dd	0
	align	4
_457:
	dd	_301
	dd	71
	dd	3
	align	4
_459:
	dd	_301
	dd	72
	dd	4
	align	4
_461:
	dd	_301
	dd	73
	dd	4
	align	4
_469:
	dd	_301
	dd	74
	dd	4
	align	4
_6:
	dd	_bbStringClass
	dd	2147483647
	dd	10
	dw	77,79,82,80,72,32,73,68,58,32
	align	4
_472:
	dd	_301
	dd	75
	dd	4
	align	4
_480:
	dd	_301
	dd	76
	dd	4
	align	4
_485:
	dd	_301
	dd	77
	dd	4
	align	4
_486:
	dd	_301
	dd	79
	dd	3
_593:
	db	"cmat",0
_594:
	db	"texdir",0
_595:
	db	"mat",0
_596:
	db	"mmat",0
_597:
	db	"haveid",0
_598:
	db	"cimg",0
_599:
	db	":CB3DTexture",0
_600:
	db	"fname",0
_601:
	db	"nfname",0
	align	4
_592:
	dd	1
	dd	_116
	dd	2
	dd	_350
	dd	_138
	dd	-4
	dd	2
	dd	_593
	dd	_148
	dd	-8
	dd	2
	dd	_152
	dd	_129
	dd	-12
	dd	2
	dd	_594
	dd	_100
	dd	-16
	dd	2
	dd	_595
	dd	_164
	dd	-20
	dd	2
	dd	_596
	dd	_164
	dd	-24
	dd	2
	dd	_597
	dd	_129
	dd	-28
	dd	2
	dd	_129
	dd	_129
	dd	-32
	dd	2
	dd	_598
	dd	_599
	dd	-36
	dd	2
	dd	_600
	dd	_100
	dd	-40
	dd	2
	dd	_601
	dd	_100
	dd	-44
	dd	0
	align	4
_489:
	dd	_301
	dd	85
	dd	2
	align	4
_491:
	dd	_301
	dd	87
	dd	3
	align	4
_503:
	dd	_301
	dd	89
	dd	4
	align	4
_507:
	dd	_301
	dd	90
	dd	5
	align	4
_508:
	dd	_301
	dd	92
	dd	5
	align	4
_510:
	dd	_301
	dd	93
	dd	5
	align	4
_511:
	dd	_301
	dd	97
	dd	3
	align	4
_513:
	dd	_301
	dd	98
	dd	4
	align	4
_514:
	dd	_301
	dd	99
	dd	4
	align	4
_522:
	dd	_301
	dd	100
	dd	4
	align	4
_526:
	dd	_301
	dd	101
	dd	4
	align	4
_531:
	dd	_301
	dd	103
	dd	3
	align	4
_10:
	dd	_bbStringClass
	dd	2147483647
	dd	18
	dw	67,114,101,97,116,101,100,32,77,97,116,101,114,105,97,108
	dw	58,32
	align	4
_532:
	dd	_301
	dd	105
	dd	3
	align	4
_11:
	dd	_bbStringClass
	dd	2147483647
	dd	10
	dw	77,97,112,99,111,117,110,116,58,32
	align	4
_535:
	dd	_301
	dd	106
	dd	3
	align	4
_541:
	dd	_301
	dd	107
	dd	4
	align	4
_543:
	dd	_301
	dd	108
	dd	4
	align	4
_547:
	dd	_301
	dd	110
	dd	4
	align	4
_551:
	dd	_301
	dd	111
	dd	4
	align	4
_553:
	dd	_301
	dd	113
	dd	4
	align	4
_15:
	dd	_bbStringClass
	dd	2147483647
	dd	7
	dw	70,101,116,99,104,58,32
	align	4
_556:
	dd	_301
	dd	114
	dd	4
	align	4
_564:
	dd	_301
	dd	116
	dd	4
	align	4
_574:
	dd	_301
	dd	117
	dd	4
	align	4
_578:
	dd	_301
	dd	118
	dd	5
	align	4
_16:
	dd	_bbStringClass
	dd	2147483647
	dd	16
	dw	116,101,120,116,117,114,101,32,119,97,115,32,110,117,108,108
	align	4
_579:
	dd	_301
	dd	120
	dd	4
	align	4
_582:
	dd	_301
	dd	123
	dd	3
	align	4
_587:
	dd	_301
	dd	124
	dd	3
	align	4
_591:
	dd	_301
	dd	125
	dd	3
_621:
	db	"index",0
	align	4
_620:
	dd	1
	dd	_118
	dd	2
	dd	_350
	dd	_138
	dd	-4
	dd	2
	dd	_621
	dd	_129
	dd	-8
	dd	2
	dd	_595
	dd	_164
	dd	-12
	dd	0
	align	4
_602:
	dd	_301
	dd	131
	dd	3
	align	4
_614:
	dd	_301
	dd	133
	dd	4
	align	4
_618:
	dd	_301
	dd	140
	dd	5
	align	4
_619:
	dd	_301
	dd	146
	dd	3
_731:
	db	"msh",0
_732:
	db	"c3db3dm",0
_733:
	db	":CB3DMesh",0
_734:
	db	"smesh",0
_735:
	db	":CalCoreSubmesh",0
	align	4
_730:
	dd	1
	dd	_120
	dd	2
	dd	_350
	dd	_138
	dd	-8
	dd	2
	dd	_731
	dd	_132
	dd	-12
	dd	2
	dd	_732
	dd	_733
	dd	-16
	dd	2
	dd	_129
	dd	_129
	dd	-20
	dd	2
	dd	_734
	dd	_735
	dd	-24
	dd	2
	dd	_152
	dd	_129
	dd	-28
	dd	2
	dd	_597
	dd	_95
	dd	-4
	dd	2
	dd	_595
	dd	_164
	dd	-32
	dd	2
	dd	_593
	dd	_164
	dd	-36
	dd	0
	align	4
_622:
	dd	_301
	dd	153
	dd	4
	align	4
_624:
	dd	_301
	dd	155
	dd	5
	align	4
_626:
	dd	_301
	dd	156
	dd	5
	align	4
_634:
	dd	_301
	dd	157
	dd	5
	align	4
_20:
	dd	_bbStringClass
	dd	2147483647
	dd	7
	dw	65,100,100,101,100,58,32
	align	4
_637:
	dd	_301
	dd	158
	dd	5
	align	4
_645:
	dd	_301
	dd	159
	dd	5
	align	4
_649:
	dd	_301
	dd	159
	dd	37
	align	4
_652:
	dd	_301
	dd	160
	dd	5
	align	4
_662:
	dd	_301
	dd	162
	dd	5
	align	4
_670:
	dd	_301
	dd	165
	dd	5
	align	4
_678:
	dd	_301
	dd	167
	dd	6
	align	4
_684:
	dd	_301
	dd	168
	dd	6
	align	4
_686:
	dd	_301
	dd	170
	dd	7
	align	4
_690:
	dd	_301
	dd	172
	dd	7
	align	4
_692:
	dd	_301
	dd	173
	dd	7
	align	4
_704:
	dd	_301
	dd	175
	dd	8
	align	4
_708:
	dd	_301
	dd	176
	dd	9
	align	4
_709:
	dd	_301
	dd	177
	dd	9
	align	4
_710:
	dd	_301
	dd	181
	dd	7
	align	4
_712:
	dd	_301
	dd	182
	dd	8
	align	4
_714:
	dd	_301
	dd	183
	dd	8
	align	4
_718:
	dd	_301
	dd	184
	dd	8
	align	4
_723:
	dd	_301
	dd	191
	dd	5
	align	4
_728:
	dd	_301
	dd	192
	dd	5
	align	4
_729:
	dd	_301
	dd	194
	dd	4
_921:
	db	"cb3d",0
_922:
	db	"mc",0
_923:
	db	"submeshCount",0
_924:
	db	"ii",0
_925:
	db	"vertexCount",0
_926:
	db	"faceCount",0
_927:
	db	"faces",0
_928:
	db	"[]s",0
_929:
	db	"vertices",0
_930:
	db	"[]f",0
	align	4
_920:
	dd	1
	dd	_122
	dd	2
	dd	_350
	dd	_138
	dd	-4
	dd	2
	dd	_595
	dd	_164
	dd	-8
	dd	2
	dd	_921
	dd	_733
	dd	-12
	dd	2
	dd	_922
	dd	_129
	dd	-16
	dd	2
	dd	_129
	dd	_129
	dd	-20
	dd	2
	dd	_923
	dd	_129
	dd	-24
	dd	2
	dd	_924
	dd	_129
	dd	-28
	dd	2
	dd	_925
	dd	_129
	dd	-32
	dd	2
	dd	_926
	dd	_129
	dd	-36
	dd	2
	dd	_927
	dd	_928
	dd	-40
	dd	2
	dd	_929
	dd	_930
	dd	-44
	dd	0
	align	4
_736:
	dd	_301
	dd	199
	dd	3
	align	4
_742:
	dd	_301
	dd	200
	dd	4
	align	4
_27:
	dd	_bbStringClass
	dd	2147483647
	dd	22
	dw	67,111,114,101,32,83,107,101,108,101,116,111,110,32,105,115
	dw	32,110,117,108,108,33
	align	4
_743:
	dd	_301
	dd	201
	dd	4
	align	4
_744:
	dd	_301
	dd	203
	dd	3
	align	4
_753:
	dd	_301
	dd	205
	dd	3
	align	4
_765:
	dd	_301
	dd	207
	dd	4
	align	4
_772:
	dd	_301
	dd	208
	dd	4
	align	4
_781:
	dd	_301
	dd	210
	dd	3
	align	4
_793:
	dd	_301
	dd	212
	dd	3
	align	4
_805:
	dd	_301
	dd	213
	dd	4
	align	4
_812:
	dd	_301
	dd	221
	dd	3
	align	4
_816:
	dd	_301
	dd	222
	dd	4
	align	4
_34:
	dd	_bbStringClass
	dd	2147483647
	dd	11
	dw	72,97,118,101,32,67,109,111,100,101,108
	align	4
_817:
	dd	_301
	dd	224
	dd	3
	align	4
_821:
	dd	_301
	dd	227
	dd	3
	align	4
_833:
	dd	_301
	dd	228
	dd	3
	align	4
_838:
	dd	_301
	dd	230
	dd	3
	align	4
_844:
	dd	_301
	dd	231
	dd	3
	align	4
_35:
	dd	_bbStringClass
	dd	2147483647
	dd	12
	dw	77,101,115,104,32,67,111,117,110,116,58,32
	align	4
_845:
	dd	_301
	dd	232
	dd	3
	align	4
_849:
	dd	_301
	dd	234
	dd	4
	align	4
_860:
	dd	_301
	dd	238
	dd	5
	align	4
_864:
	dd	_301
	dd	239
	dd	6
	align	4
_42:
	dd	_bbStringClass
	dd	2147483647
	dd	10
	dw	71,111,116,32,77,101,115,104,58,32
	align	4
_865:
	dd	_301
	dd	241
	dd	6
	align	4
_871:
	dd	_301
	dd	242
	dd	6
	align	4
_43:
	dd	_bbStringClass
	dd	2147483647
	dd	15
	dw	78,79,70,58,32,83,117,98,109,101,115,104,101,115,32
	align	4
_872:
	dd	_301
	dd	244
	dd	6
	align	4
_876:
	dd	_301
	dd	246
	dd	7
	align	4
_883:
	dd	_301
	dd	248
	dd	7
	align	4
_889:
	dd	_301
	dd	249
	dd	7
	align	4
_895:
	dd	_301
	dd	251
	dd	7
	align	4
_48:
	dd	_bbStringClass
	dd	2147483647
	dd	6
	dw	32,70,97,99,101,115
	align	4
_47:
	dd	_bbStringClass
	dd	2147483647
	dd	7
	dw	86,101,114,116,115,58,32
	align	4
_896:
	dd	_301
	dd	255
	dd	7
_897:
	db	"s",0
	align	4
_899:
	dd	_301
	dd	256
	dd	7
_900:
	db	"f",0
	align	4
_902:
	dd	_301
	dd	257
	dd	7
	align	4
_907:
	dd	_301
	dd	258
	dd	7
	align	4
_912:
	dd	_301
	dd	259
	dd	7
	align	4
_915:
	dd	_301
	dd	280
	dd	3
_993:
	db	"ctex",0
	align	4
_992:
	dd	1
	dd	_123
	dd	2
	dd	_350
	dd	_138
	dd	-4
	dd	2
	dd	_921
	dd	_733
	dd	-8
	dd	2
	dd	_595
	dd	_164
	dd	-12
	dd	2
	dd	_993
	dd	_599
	dd	-16
	dd	0
	align	4
_931:
	dd	_301
	dd	287
	dd	3
	align	4
_943:
	dd	_301
	dd	288
	dd	4
	align	4
_947:
	dd	_301
	dd	288
	dd	33
	align	4
_950:
	dd	_301
	dd	290
	dd	3
	align	4
_962:
	dd	_301
	dd	291
	dd	4
	align	4
_974:
	dd	_301
	dd	292
	dd	5
	align	4
_977:
	dd	_301
	dd	294
	dd	4
	align	4
_980:
	dd	_301
	dd	296
	dd	3
	align	4
_983:
	dd	_301
	dd	297
	dd	3
	align	4
_986:
	dd	_301
	dd	298
	dd	3
	align	4
_989:
	dd	_301
	dd	299
	dd	3
_1116:
	db	"d",0
_1117:
	db	"f",0
_1118:
	db	"normals",0
_1119:
	db	"texcoords",0
_1120:
	db	"brush",0
	align	4
_1115:
	dd	1
	dd	_124
	dd	2
	dd	_350
	dd	_138
	dd	-4
	dd	2
	dd	_1116
	dd	_1117
	dd	-8
	dd	2
	dd	_922
	dd	_129
	dd	-12
	dd	2
	dd	_129
	dd	_129
	dd	-16
	dd	2
	dd	_921
	dd	_733
	dd	-20
	dd	2
	dd	_923
	dd	_129
	dd	-24
	dd	2
	dd	_924
	dd	_129
	dd	-28
	dd	2
	dd	_925
	dd	_129
	dd	-32
	dd	2
	dd	_929
	dd	_930
	dd	-36
	dd	2
	dd	_1118
	dd	_930
	dd	-40
	dd	2
	dd	_1119
	dd	_930
	dd	-44
	dd	2
	dd	_734
	dd	_735
	dd	-48
	dd	2
	dd	_1120
	dd	_164
	dd	-52
	dd	0
	align	4
_994:
	dd	_301
	dd	305
	dd	4
	align	4
_998:
	dd	_301
	dd	305
	dd	26
	align	4
_999:
	dd	_301
	dd	306
	dd	4
	align	4
_1004:
	dd	_301
	dd	307
	dd	4
	align	4
_1009:
	dd	_301
	dd	308
	dd	5
	align	4
_1015:
	dd	_301
	dd	309
	dd	5
	align	4
_1019:
	dd	_301
	dd	310
	dd	6
	align	4
_1031:
	dd	_301
	dd	311
	dd	7
	align	4
_1035:
	dd	_301
	dd	312
	dd	8
	align	4
_1041:
	dd	_301
	dd	314
	dd	8
	align	4
_1045:
	dd	_301
	dd	315
	dd	9
	align	4
_1052:
	dd	_301
	dd	316
	dd	9
	align	4
_1058:
	dd	_301
	dd	320
	dd	9
_1059:
	db	"f",0
	align	4
_1061:
	dd	_301
	dd	321
	dd	9
_1062:
	db	"f",0
	align	4
_1064:
	dd	_301
	dd	322
	dd	9
_1065:
	db	"f",0
	align	4
_1067:
	dd	_301
	dd	324
	dd	9
	align	4
_1072:
	dd	_301
	dd	325
	dd	9
	align	4
_1077:
	dd	_301
	dd	326
	dd	9
	align	4
_1087:
	dd	_301
	dd	327
	dd	9
	align	4
_1094:
	dd	_301
	dd	332
	dd	9
	align	4
_1100:
	dd	_301
	dd	333
	dd	9
	align	4
_1102:
	dd	_301
	dd	334
	dd	10
	align	4
_1107:
	dd	_301
	dd	346
	dd	9
	align	4
_1110:
	dd	_301
	dd	352
	dd	4
	align	4
_1127:
	dd	1
	dd	_102
	dd	2
	dd	_350
	dd	_733
	dd	-4
	dd	0
	align	4
_1150:
	dd	1
	dd	_139
	dd	2
	dd	_350
	dd	_733
	dd	-4
	dd	2
	dd	_924
	dd	_129
	dd	-8
	dd	2
	dd	_1120
	dd	_146
	dd	-12
	dd	0
_1142:
	db	"$BMXPATH/mod/c3d.mod/calb3d.mod/includes/cb3dmesh.bmx",0
	align	4
_1141:
	dd	_1142
	dd	15
	dd	3
_1266:
	db	"ind",0
_1267:
	db	"v",0
_1268:
	db	"t",0
	align	4
_1265:
	dd	1
	dd	_122
	dd	2
	dd	_350
	dd	_733
	dd	-4
	dd	2
	dd	_1266
	dd	_129
	dd	-8
	dd	2
	dd	_1267
	dd	_930
	dd	-12
	dd	2
	dd	_1117
	dd	_928
	dd	-16
	dd	2
	dd	_129
	dd	_129
	dd	-20
	dd	2
	dd	_1268
	dd	_129
	dd	-24
	dd	0
	align	4
_1151:
	dd	_1142
	dd	21
	dd	3
	align	4
_1155:
	dd	_1142
	dd	22
	dd	4
	align	4
_67:
	dd	_bbStringClass
	dd	2147483647
	dd	15
	dw	67,109,101,115,104,32,119,97,115,32,110,117,108,108,33
	align	4
_1156:
	dd	_1142
	dd	23
	dd	4
	align	4
_1157:
	dd	_1142
	dd	26
	dd	3
	align	4
_1161:
	dd	_1142
	dd	27
	dd	4
	align	4
_1173:
	dd	_1142
	dd	31
	dd	3
	align	4
_1177:
	dd	_1142
	dd	32
	dd	4
_1185:
	db	":TSurface",0
	align	4
_1190:
	dd	_1142
	dd	33
	dd	4
	align	4
_1205:
	dd	_1142
	dd	34
	dd	4
	align	4
_68:
	dd	_bbStringClass
	dd	2147483647
	dd	7
	dw	66,117,105,108,100,58,32
	align	4
_1207:
	dd	_1142
	dd	36
	dd	4
	align	4
_1215:
	dd	_1142
	dd	37
	dd	4
	align	4
_69:
	dd	_bbStringClass
	dd	2147483647
	dd	9
	dw	82,101,66,117,105,108,100,58,32
	align	4
_1216:
	dd	_1142
	dd	42
	dd	3
	align	4
_1220:
	dd	_1142
	dd	43
	dd	4
	align	4
_1234:
	dd	_1142
	dd	45
	dd	3
	align	4
_1238:
	dd	_1142
	dd	46
	dd	4
	align	4
_1252:
	dd	_1142
	dd	67
	dd	3
	align	4
_1260:
	dd	_1142
	dd	69
	dd	3
	align	4
_1264:
	dd	_1142
	dd	70
	dd	3
_1318:
	db	"si",0
_1319:
	db	"n",0
	align	4
_1317:
	dd	1
	dd	_124
	dd	2
	dd	_350
	dd	_733
	dd	-4
	dd	2
	dd	_1318
	dd	_129
	dd	-8
	dd	2
	dd	_1267
	dd	_930
	dd	-12
	dd	2
	dd	_1319
	dd	_930
	dd	-16
	dd	2
	dd	_1268
	dd	_930
	dd	-20
	dd	0
	align	4
_1269:
	dd	_1142
	dd	77
	dd	3
	align	4
_1282:
	dd	_1142
	dd	78
	dd	3
	align	4
_1295:
	dd	_1142
	dd	79
	dd	3
	align	4
_1308:
	dd	_1142
	dd	80
	dd	3
	align	4
_1377:
	dd	1
	dd	_102
	dd	2
	dd	_350
	dd	_164
	dd	-4
	dd	0
_1322:
	db	"i",0
_1328:
	db	"$BMXPATH/mod/c3d.mod/calb3d.mod/includes/cb3dmaterial.bmx",0
	align	4
_1327:
	dd	_1328
	dd	14
	dd	3
	align	4
_1336:
	dd	_1328
	dd	15
	dd	3
	align	4
_1343:
	dd	_1328
	dd	16
	dd	3
	align	4
_1350:
	dd	_1328
	dd	17
	dd	3
	align	4
_1357:
	dd	_1328
	dd	18
	dd	3
	align	4
_1365:
	dd	_1328
	dd	19
	dd	3
	align	4
_1369:
	dd	_1328
	dd	20
	dd	3
	align	4
_76:
	dd	_bbStringClass
	dd	2147483647
	dd	5
	dw	98,108,97,110,107
_1416:
	db	"map",0
	align	4
_1415:
	dd	1
	dd	_154
	dd	2
	dd	_350
	dd	_164
	dd	-4
	dd	2
	dd	_1416
	dd	_599
	dd	-8
	dd	2
	dd	_161
	dd	_129
	dd	-12
	dd	0
	align	4
_1391:
	dd	_1328
	dd	26
	dd	3
	align	4
_1398:
	dd	_1328
	dd	27
	dd	3
	align	4
_1402:
	dd	_1328
	dd	28
	dd	3
	align	4
_1410:
	dd	_1328
	dd	29
	dd	3
	align	4
_1420:
	dd	1
	dd	_102
	dd	2
	dd	_350
	dd	_599
	dd	-4
	dd	0
	align	4
_1432:
	dd	1
	dd	_102
	dd	2
	dd	_350
	dd	_456
	dd	-4
	dd	0
	align	4
_1446:
	dd	1
	dd	_102
	dd	2
	dd	_350
	dd	_488
	dd	-4
	dd	0
